Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DingConfig *notify.DingConfig `json:"ding_config" validate:"omitempty"`
MailConfig *notify.MailConfig `json:"mail_config" validate:"omitempty"`
TelegramConfig *notify.TelegramConfig `json:"telegram_config" validate:"omitempty"`
KvStore string `json:"kv_store" validate:"required,oneof=mem file fauna pg"`
FileStoreConfigPath string `json:"file_store_config_path" validate:"omitempty"`
WatcherConfigs []WatcherConfig `json:"watcher_configs" validate:"gt=0,dive"`
FaunaConfig *fauna.Config `json:"fauna_config"`
FileConfig *file.Config `json:"file_config"`
PgConfig *pg.Config `json:"pg_config"`
}
type Option ¶
type Option func(o *runtimeOpts)
Option is a function that customizes the runtime.
func WithConfigFile ¶
func WithLimitInterval ¶
func WithNotifiers ¶
func WithSerialize ¶
func WithSingle ¶
func WithStores ¶
type RssWatcherRuntime ¶
type RssWatcherRuntime struct {
// contains filtered or unexported fields
}
func NewRssWatcherRuntime ¶
func NewRssWatcherRuntime(logger *logger.Logger) *RssWatcherRuntime
func (*RssWatcherRuntime) Run ¶
func (r *RssWatcherRuntime) Run(opts ...Option) error
type WatcherConfig ¶
Click to show internal directories.
Click to hide internal directories.