Documentation ¶
Index ¶
- func ListActions() utask.NotifyActions
- func ListSendersNames() []string
- func RegisterActions(na utask.NotifyActions)
- func RegisterSender(s NotificationSender, name string)
- func Send(m *Message, params utask.NotifyActionsParameters)
- func WrappedSendError(etype string, err string)
- type Message
- type NotificationSender
- type TaskStateUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListActions ¶
func ListActions() utask.NotifyActions
ListActions returns a list of available actions to notify
func ListSendersNames ¶
func ListSendersNames() []string
ListSendersNames returns a list of available senders
func RegisterActions ¶
func RegisterActions(na utask.NotifyActions)
RegisterActions set available actions
func RegisterSender ¶
func RegisterSender(s NotificationSender, name string)
RegisterSender adds a NotificationSender to the pool of available senders
func Send ¶
func Send(m *Message, params utask.NotifyActionsParameters)
Send dispatches a Message struct over all registered senders
func WrappedSendError ¶ added in v1.1.0
WrappedSendError print a formatted string from Send Notify in case of issue
Types ¶
type Message ¶ added in v1.1.0
Message represents a generic message to be sent
func WrapTaskStateUpdate ¶ added in v1.1.0
func WrapTaskStateUpdate(tsu *TaskStateUpdate) *Message
WrapTaskStateUpdate returns a Message struct formatted for a task state change
type NotificationSender ¶
NotificationSender is an object capable of sending a Message struct over a notification channel, as determined by its implementation
Click to show internal directories.
Click to hide internal directories.