notifier

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsole added in v0.0.13

func NewConsole(name string, cfg *config.ConsoleConfig) *console

func NewHttpNotifier added in v0.0.39

func NewHttpNotifier(name string, cfg *config.HttpConfig) *httpNotifier

func NewRedis added in v0.0.39

func NewRedis(name string, cfg *config.RedisNotifierConfig) *redisNotifier

func NewTelegramBot added in v0.0.13

func NewTelegramBot(name string, generalCfg *config.NotifierConfig, cfg *config.TelegramBotConfig) (*telegramBot, error)

func ShouldInform added in v0.0.39

func ShouldInform(cfg *config.NotifierConfig, result builder.Jsonable) (bool, error)

Types

type Notifier

type Notifier interface {
	Inform(result *parser.ParseResult, err error, asArray bool) error
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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