hamsg

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InGreen added in v0.0.16

func InGreen(msg string) string

func InRed added in v0.0.16

func InRed(msg string) string

func PrintGreen added in v0.0.16

func PrintGreen(msg string)

func PrintRed added in v0.0.16

func PrintRed(msg string)

Types

type DiscordHook added in v0.1.17

type DiscordHook struct {
	Url string
}

func NewDiscordHook added in v0.1.17

func NewDiscordHook(url string) *DiscordHook

func (*DiscordHook) Send added in v0.1.17

func (hook *DiscordHook) Send(content string) error

type Mailer added in v0.1.2

type Mailer struct {
	Account  string
	Psw      string
	SmtpHost string
	SmtpPort int
}

func NewMailer added in v0.1.2

func NewMailer(account string, psw string, smtpHost string, smtpPort int) *Mailer

func (*Mailer) GetAuth added in v0.1.2

func (mailer *Mailer) GetAuth() smtp.Auth

func (*Mailer) Send added in v0.1.2

func (mailer *Mailer) Send(to string, title string, content string) error

type WeChatBot

type WeChatBot struct {
	Bot *wxworkbot.WxWorkBot
}

func NewWechatBot

func NewWechatBot(token string) *WeChatBot

func (*WeChatBot) Send

func (bot *WeChatBot) Send(text string) error

Jump to

Keyboard shortcuts

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