Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Name ... Name = "notify" // TopicNotify ... TopicNotify = "system/plugins/notify" )
Variables ¶
View Source
var F embed.FS
Functions ¶
Types ¶
type NotifyBind ¶
type NotifyBind struct {
// contains filtered or unexported fields
}
NotifyBind ...
type Provider ¶
type Provider interface { Save(common.Message) (addresses []string, message *m.Message) Send(addresses string, message *m.Message) error MessageParams() m.Attributes }
Provider ...
type TemplateBind ¶
type TemplateBind struct {
// contains filtered or unexported fields
}
TemplateBind ...
func NewTemplateBind ¶
func NewTemplateBind(adaptor *adaptors.Adaptors) *TemplateBind
NewTemplateBind ...
func (*TemplateBind) Render ¶
func (t *TemplateBind) Render(templateName string, params map[string]interface{}) *m.TemplateRender
Render ...
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker ...
func (*Worker) SaveAndSend ¶
func (n *Worker) SaveAndSend(msg notifyCommon.Message, provider Provider)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.