app

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package app is the parent package for the app and types shared across the app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedStats

type FeedStats struct {
	Name          string
	ErrorCount    int
	ReceivedCount int
	ReceivedLast  time.Time
}

type ItemState

type ItemState uint
const (
	StateProcessed ItemState = iota
	StateUpdated
	StateNew
)

type ProcessedItem

type ProcessedItem struct {
	ID        string
	Published time.Time
}

ProcessedItem represents a sent item

func NewProcessedItemFromBytes

func NewProcessedItemFromBytes(byt []byte) (*ProcessedItem, error)

func (*ProcessedItem) Key

func (si *ProcessedItem) Key() []byte

func (*ProcessedItem) ToBytes

func (si *ProcessedItem) ToBytes() ([]byte, error)

type WebhookStats

type WebhookStats struct {
	Name      string
	SentCount int
	SentLast  time.Time
}

Directories

Path Synopsis
Package config provides the app's configuration.
Package config provides the app's configuration.
Package dispatcher contains the dispatcher service.
Package dispatcher contains the dispatcher service.
Package messenger provides the ability to post messages to a webhook.
Package messenger provides the ability to post messages to a webhook.
Package remote contains the logic for communicating between cli and server process.
Package remote contains the logic for communicating between cli and server process.
Package storage provides access to persistent storage.
Package storage provides access to persistent storage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL