notifier

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inform added in v1.0.3

func Inform(notifier Notifier, name string, result *parser.ParseResult, errResult error, asArray bool, logger logger.Logger, input builder.Interfacable) error

func NewConsole added in v0.0.13

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

func NewFile added in v1.0.1

func NewFile(name string, cfg *config.FileStorageField) *fileNotifier

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, cfg *config.TelegramBotConfig) *telegramBot

func ShouldInform added in v0.0.39

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

Types

type Notifier

type Notifier interface {
	GetLogger() logger.Logger
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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