notify

package
v0.0.0-...-6447ddf Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: MIT Imports: 4 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
}

func NewTelegramNotifier

func NewTelegramNotifier(conf *config.Config) (Notifier, error)

type TelegramNotifier

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

func (*TelegramNotifier) Send

Jump to

Keyboard shortcuts

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