notifier

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 15 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, cfg *config.TelegramBotConfig) (*telegramBot, error)

func ShouldInform added in v0.0.39

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

Types

type HttpRequestBody added in v0.0.39

type HttpRequestBody struct {
	Name  string           `json:"name"`
	Error bool             `json:"error,omitempty"`
	Value *json.RawMessage `json:"result,omitempty"`
}

type Notifier

type Notifier interface {
	Inform(result *parser.ParseResult, err error, isArray bool) error
}

Jump to

Keyboard shortcuts

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