notify

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 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 Content

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

func NewContext

func NewContext(gid string, err error) Content

func (*Content) Msg

func (context *Content) Msg() string

type Notify

type Notify interface {
	Notify(content Content)
	Stop()
}

func New

func New(senders []Sender) Notify

type Sender

type Sender interface {
	Send(title, msg string) error
}

Directories

Path Synopsis
Package telegram is the telegram notification package.
Package telegram is the telegram notification package.

Jump to

Keyboard shortcuts

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