Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvalidNotificationError ¶
InvalidNotificationError is the error returned when a notification has invalid data.
func (InvalidNotificationError) Error ¶
func (i InvalidNotificationError) Error() string
Error returns the string error msg for InvalidNotificationError.
type Manager ¶
type Manager interface { // UpsertNotification insert or updates a notification. UpsertNotification(n Notification) error // GetNotification reads a notification. GetNotification(ref string) (*Notification, error) // DeleteNotification deletes a notifcation. DeleteNotification(ref string) error }
Manager is the interface notification storage managers have to implement.
type NotFoundError ¶
type NotFoundError struct {
Ref string
}
NotFoundError is the error returned when a notification does not exist.
func (NotFoundError) Error ¶
func (n NotFoundError) Error() string
Error returns the string error msg for NotFoundError.
type Notification ¶
type Notification struct { TemplateName string Template template.Template Ref string Recipients []string }
Notification is the representation of a notification.
func (*Notification) CheckNotification ¶
func (n *Notification) CheckNotification() error
CheckNotification checks if a notification has correct data.
Directories ¶
Path | Synopsis |
---|---|
manager
|
|
Package utils contains utilities related to the notifications service and helper.
|
Package utils contains utilities related to the notifications service and helper. |
Click to show internal directories.
Click to hide internal directories.