Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct {
Params NotificationParams
Body []byte
PlainBody []byte
}
func (*Notification) Valid ¶
func (n *Notification) Valid() bool
Valid method checks if the email is valid. It returns true if the recipient email address, the subject and the body are not empty.
type NotificationParams ¶
func (NotificationParams) Valid ¶
func (p NotificationParams) Valid() bool
type Queue ¶
type Queue interface {
Start()
Stop()
Pop() (Notification, bool)
Push(Notification) error
Send(Notification) error
}
Click to show internal directories.
Click to hide internal directories.