message

package
v1.0.3-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MailAuth added in v1.0.1

func MailAuth(username, password string) smtp.Auth

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL