notifier

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogNotifier

type LogNotifier struct {
	// contains filtered or unexported fields
}

func (*LogNotifier) Error

func (n *LogNotifier) Error(err error)

func (*LogNotifier) Info

func (n *LogNotifier) Info(msg string)

type Notifier

type Notifier interface {
	Info(msg string)
	Error(err error)
}

func NewLogNotifier

func NewLogNotifier() Notifier

func NewTelegramNotifier

func NewTelegramNotifier(c *config.Telegram) (Notifier, error)

type TelegramNotifier

type TelegramNotifier struct {
	// contains filtered or unexported fields
}

func (*TelegramNotifier) Error

func (n *TelegramNotifier) Error(err error)

func (*TelegramNotifier) Info

func (n *TelegramNotifier) Info(msg string)

Jump to

Keyboard shortcuts

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