sender

package
v5.14.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapStrToStr added in v5.11.2

func MapStrToStr(arr []string, fn func(s string) string) []string

func SendDingtalk

func SendDingtalk(message DingtalkMessage)

func SendEmail

func SendEmail(subject, content string, tos []string)

func SendFeishu

func SendFeishu(message FeishuMessage)

func SendMM added in v5.11.2

func SendMM(message MatterMostMessage)

func SendTelegram added in v5.14.3

func SendTelegram(message TelegramMessage)

func SendWecom

func SendWecom(message WecomMessage)

func StartEmailSender

func StartEmailSender()

func WriteEmail

func WriteEmail(subject, content string, tos []string)

Types

type DingtalkMessage

type DingtalkMessage struct {
	Title     string
	Text      string
	AtMobiles []string
	Tokens    []string
}

type FeishuMessage

type FeishuMessage struct {
	Text      string
	AtMobiles []string
	Tokens    []string
}

type MatterMostMessage added in v5.11.2

type MatterMostMessage struct {
	Text   string
	Tokens []string
}

type TelegramMessage added in v5.14.3

type TelegramMessage struct {
	Text   string
	Tokens []string
}

type WecomMessage

type WecomMessage struct {
	Text   string
	Tokens []string
}

Jump to

Keyboard shortcuts

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