notify

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogNotify

type LogNotify struct {
}

func (*LogNotify) Send

func (lnotify *LogNotify) Send(message string) error

Send notify to log

type MailNotify

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

func NewMailNotify

func NewMailNotify(host string, port int, username, password, subject, from, to string) *MailNotify

func (*MailNotify) Send

func (mailNotify *MailNotify) Send(message string) error

Send notify to email

type SingleNotify

type SingleNotify interface {
	Send(message string) error
}

type TelegramNotify

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

func NewTelegramNotify

func NewTelegramNotify(token string, chatID int64) *TelegramNotify

func (*TelegramNotify) Send

func (tgNotify *TelegramNotify) Send(message string) error

Send notify to telegram

Jump to

Keyboard shortcuts

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