notify

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

README

NOTIFY Plugin

Documentation

Documentation

Index

Constants

View Source
const (
	// Name ...
	Name = "notify"
	// TopicNotify ...
	TopicNotify = "system/plugins/notify"

	Version = "0.0.1"
)

Variables

Functions

func New

func New() supervisor.Pluggable

New ...

func NewMessage

func NewMessage() *common.Message

NewMessage ...

Types

type Notify

type Notify struct {
	// contains filtered or unexported fields
}

func NewNotify

func NewNotify(adaptors *adaptors.Adaptors) *Notify

NewNotify ...

func (*Notify) SaveAndSend added in v0.12.0

func (n *Notify) SaveAndSend(msg common.Message, provider Provider)

func (*Notify) Send

func (n *Notify) Send(msg *m.MessageDelivery, provider Provider)

func (*Notify) Shutdown

func (n *Notify) Shutdown()

func (*Notify) Start

func (n *Notify) Start()

type NotifyBind

type NotifyBind struct {
	// contains filtered or unexported fields
}

NotifyBind ...

func NewNotifyBind

func NewNotifyBind(eventBus bus.Bus) *NotifyBind

NewNotifyBind ...

func (*NotifyBind) NewMessage

func (b *NotifyBind) NewMessage() *common.Message

NewMessage ...

func (*NotifyBind) Send

func (b *NotifyBind) Send(msg common.Message)

Send ...

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 Stat

type Stat struct {
	Workers int `json:"workers"`
}

Stat ...

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 NewWorker

func NewWorker(adaptor *adaptors.Adaptors) *Worker

NewWorker ...

func (*Worker) SaveAndSend added in v0.12.0

func (n *Worker) SaveAndSend(msg notifyCommon.Message, provider Provider)

func (*Worker) Send added in v0.12.0

func (n *Worker) Send(msg *m.MessageDelivery, provider Provider)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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