Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlarmMessageHandler ¶
type AlarmMessageHandler struct { // 可以添加处理器需要的属性 RequestUrl string }
func (*AlarmMessageHandler) HandleMessageEvent ¶
func (h *AlarmMessageHandler) HandleMessageEvent(event *conf.MessageEvent)
type EmailMessageHandler ¶
type EmailMessageHandler struct { // 可以添加处理器需要的属性 *conf.EmailConfig client.Client }
func NewEmailMessageOptions ¶
func NewEmailMessageOptions(event *conf.EmailConfig, c client.Client) *EmailMessageHandler
func (*EmailMessageHandler) HandleMessageEvent ¶
func (e *EmailMessageHandler) HandleMessageEvent(event *conf.MessageEvent)
func (*EmailMessageHandler) SendMsg ¶
func (e *EmailMessageHandler) SendMsg(eve *conf.MessageEvent) error
func (*EmailMessageHandler) Vail ¶
func (e *EmailMessageHandler) Vail() error
type EventDispatcher ¶
type EventDispatcher struct {
// contains filtered or unexported fields
}
func RegisterHandler ¶
func RegisterHandler(handler conf.EventHandler) *EventDispatcher
func (*EventDispatcher) DispatchMessageEvent ¶
func (d *EventDispatcher) DispatchMessageEvent(event *conf.MessageEvent)
Click to show internal directories.
Click to hide internal directories.