notify

package
v0.0.0-...-2321e21 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNotifier

func AddNotifier(n Notifier)

func Init

func Init()

func Notify

func Notify(ctx context.Context, s string)

Types

type Notifier

type Notifier interface {
	Send(ctx context.Context, s string) error
}

type TelegramNotifier

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

func NewTelegramNotifier

func NewTelegramNotifier(token string, chatID int64) (*TelegramNotifier, error)

func (*TelegramNotifier) Send

func (t *TelegramNotifier) Send(ctx context.Context, s string) error

Jump to

Keyboard shortcuts

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