hamsg

package
v0.2.73 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InBlue added in v0.2.19

func InBlue(msg string) string

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 InYellow added in v0.2.19

func InYellow(msg string) string

func PrintBlue added in v0.2.19

func PrintBlue(msg string)

func PrintGreen added in v0.0.16

func PrintGreen(msg string)

func PrintRed added in v0.0.16

func PrintRed(msg string)

func PrintYellow added in v0.2.19

func PrintYellow(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
	//set body type, 'text/plain' 'text/html'..., default is 'text/plain'
	ContentType string
}

func NewMailer added in v0.1.2

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

func (*Mailer) Send added in v0.1.2

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

func (*Mailer) SetContentType added in v0.2.45

func (mailer *Mailer) SetContentType(contentType string)

set body type, 'text/plain' 'text/html'...

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