Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgSender ¶
type MsgSender interface {
// contains filtered or unexported methods
}
演示一个发送根据事件级别发送通知的功能。本来整个逻辑可以合在一起实现,但是为了后续迭代各自演进,可以把发送通知和不同事件级别处理的类分开实现。
type NormalNotification ¶
type NormalNotification struct {
// contains filtered or unexported fields
}
通过组合的方式是实现
type Notification ¶
type Notification interface {
// contains filtered or unexported methods
}
type TeleMsgSender ¶
type TeleMsgSender struct{}
type UrgencyNotification ¶
type UrgencyNotification struct {
// contains filtered or unexported fields
}
type WechatSender ¶
type WechatSender struct{}
Click to show internal directories.
Click to hide internal directories.