Versions in this module Expand all Collapse all v1 v1.5.3 Jul 4, 2023 v1.5.2 Oct 17, 2022 Changes in this version + func Send(options PushNotification) + type DingRobot struct + DingUrl string + func (dingtalk *DingRobot) Send(result PushNotification) error + type DingRobotMarkdownTemplate struct + func (temp *DingRobotMarkdownTemplate) GenContent(buf *bytes.Buffer, m PushNotification) string + func (temp *DingRobotMarkdownTemplate) GenFooter(buf *bytes.Buffer, m PushNotification) string + func (temp *DingRobotMarkdownTemplate) GenSubject(buf *bytes.Buffer, m PushNotification) string + type Email struct + func (email *Email) Send(result PushNotification) error + type EmailTemplate struct + func (temp *EmailTemplate) GenContent(buf *bytes.Buffer, m PushNotification) string + func (temp *EmailTemplate) GenFooter(buf *bytes.Buffer, m PushNotification) string + func (temp *EmailTemplate) GenSubject(buf *bytes.Buffer, m PushNotification) string + type INotify interface + Send func(m PushNotification) error + func DingRobotHandler(dingUrl string) INotify + func EmailHandler(host, user, password string, port int) INotify + func NewHandlers(notify *PushNotification) []INotify + type INotifyTemplate interface + GenContent func(buf *bytes.Buffer, m PushNotification) string + GenFooter func(buf *bytes.Buffer, m PushNotification) string + GenSubject func(buf *bytes.Buffer, m PushNotification) string + type PushNotification struct + DingEnable bool + DingURL string + EmailEnable bool + EmailHost string + EmailPassword string + EmailPort int + EmailUser string + PublishName string + StageName string + Status int64 + StepName string