options

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Zlib Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	Server   server.Address `json:"server"`
	Username string         `json:"user"`
	Password string         `json:"pwd"`
	EmailTo  string         `json:"emailTo"` //;分开
}

type Group

type Group struct {
	Method  string `json:"method"` // = chat, agent = agentid, root
	CorpId  string `json:"corpid"`
	ChatId  string `json:"chatid"`  // 群ID(运维监控)
	User    string `json:"user"`    // "HongChenLianXin|huqiuyun"
	AgentId int64  `json:"agentid"` //企业应用
}

type Options

type Options struct {
	Email     Email     `json:"email"`
	Group     Group     `json:"group"`
	SmsConfig SmsConfig `json:"sms"`
}

type SmsConfig

type SmsConfig struct {
	Service   string `json:"service"` //是阿里,还是别的家
	RegionId  string `json:"regionid"`
	Domain    string `json:"domain"`
	AccessKey string `json:"acskey"`
	Secret    string `json:"secret"`
	SignName  string `json:"sign"`
	TempCode  string `json:"tempcode"`
	PhoneNums string `json:"phoneTo"` //,分开
}

func (*SmsConfig) IsEmpty

func (c *SmsConfig) IsEmpty() bool

Jump to

Keyboard shortcuts

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