Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Notify ¶ added in v1.5.0
func Notify(work *model.WorkRequest)
Notify is the global method to notify work
Types ¶
type HTTPNotifier ¶
HTTPNotifier is able to send a notification to a HTTP endpoint.
func (*HTTPNotifier) Notify ¶
func (n *HTTPNotifier) Notify(work *model.WorkRequest) error
Notify send a notification to a HTTP endpoint.
type Notifier ¶
type Notifier interface {
Notify(work *model.WorkRequest) error
}
Notifier is able to send a notification.
type SMTPNotifier ¶
SMTPNotifier is able to send notifcation to a email destination.
func (*SMTPNotifier) Notify ¶
func (n *SMTPNotifier) Notify(work *model.WorkRequest) error
Notify send a notification to a email destination.
Click to show internal directories.
Click to hide internal directories.