Documentation ¶
Index ¶
- Variables
- func ConsumeIMSms()
- func ConsumeMail()
- func ConsumePhone()
- func ConsumeWechat()
- func GetEndpoint(content string) string
- func InitWorker()
- func RecordAlarm(recordMsg string)
- func RecordPhoneAlarm(recordMsg string)
- func SendMail(mail *model.Mail)
- func SendMailList(L []*model.Mail)
- func SendPhone(phone *model.Phone)
- func SendPhoneList(L []*model.Phone)
- func SendSms(imsms *model.IMSms)
- func SendSmsList(L []*model.IMSms)
- func SendWechat(sms *model.WechatSms)
- func SendWechatList(L []*model.WechatSms)
- func TransContent(content string) string
- func UpdateHostMap()
- type ResponseHost
- type SafeHostMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IMSmsWorkerChan chan int MailWorkerChan chan int PhoneWorkerChan chan int WechatWorkerChan chan int )
View Source
var HostMap = &SafeHostMap{M: make(map[string]string)}
View Source
var IMSender im.IM99U
View Source
var MailSender smtp.SmtpMailSender
View Source
var PhoneSender nexmo.Nexmo
Functions ¶
func ConsumeIMSms ¶
func ConsumeIMSms()
func ConsumeMail ¶
func ConsumeMail()
func ConsumePhone ¶
func ConsumePhone()
func ConsumeWechat ¶
func ConsumeWechat()
func GetEndpoint ¶
该函数可以搜索content,并从中提取 Endpoint: 后面跟的内容。判断依据是非数字字母下划线中划线
func InitWorker ¶
func InitWorker()
func RecordAlarm ¶
func RecordAlarm(recordMsg string)
func RecordPhoneAlarm ¶
func RecordPhoneAlarm(recordMsg string)
func SendMailList ¶
func SendPhoneList ¶
func SendSmsList ¶
func SendWechat ¶
func SendWechatList ¶
func TransContent ¶
func UpdateHostMap ¶
func UpdateHostMap()
Types ¶
type ResponseHost ¶
type SafeHostMap ¶
endpoint-ip kv
func (*SafeHostMap) GetHosts ¶
func (this *SafeHostMap) GetHosts(url string)
func (*SafeHostMap) GetIP ¶
func (this *SafeHostMap) GetIP(endpoint string) string
func (*SafeHostMap) GetIPByEndpoint ¶
func (this *SafeHostMap) GetIPByEndpoint(endpoint string) string
Click to show internal directories.
Click to hide internal directories.