Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Send ¶
func Send(options PushNotification)
Types ¶
type DingRobot ¶
type DingRobot struct {
DingUrl string
}
func (*DingRobot) Send ¶
func (dingtalk *DingRobot) Send(result PushNotification) error
type DingRobotMarkdownTemplate ¶
type DingRobotMarkdownTemplate struct{}
func (*DingRobotMarkdownTemplate) GenContent ¶
func (temp *DingRobotMarkdownTemplate) GenContent(buf *bytes.Buffer, m PushNotification) string
func (*DingRobotMarkdownTemplate) GenFooter ¶
func (temp *DingRobotMarkdownTemplate) GenFooter(buf *bytes.Buffer, m PushNotification) string
func (*DingRobotMarkdownTemplate) GenSubject ¶
func (temp *DingRobotMarkdownTemplate) GenSubject(buf *bytes.Buffer, m PushNotification) string
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
func (*Email) Send ¶
func (email *Email) Send(result PushNotification) error
type EmailTemplate ¶
type EmailTemplate struct{}
func (*EmailTemplate) GenContent ¶
func (temp *EmailTemplate) GenContent(buf *bytes.Buffer, m PushNotification) string
func (*EmailTemplate) GenFooter ¶
func (temp *EmailTemplate) GenFooter(buf *bytes.Buffer, m PushNotification) string
func (*EmailTemplate) GenSubject ¶
func (temp *EmailTemplate) GenSubject(buf *bytes.Buffer, m PushNotification) string
type INotify ¶
type INotify interface {
Send(m PushNotification) error
}
func DingRobotHandler ¶
func EmailHandler ¶
func NewHandlers ¶
func NewHandlers(notify *PushNotification) []INotify
type INotifyTemplate ¶
type INotifyTemplate interface { GenSubject(buf *bytes.Buffer, m PushNotification) string GenContent(buf *bytes.Buffer, m PushNotification) string }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.