Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailReceivedPayload ¶
type MailReceivedPayload struct {
Type string `json:"type"`
MailFrom string `json:"mail_from"`
Subject string `json:"subject"`
ContentPreview string `json:"content_preview"`
}
MailReceivedPayload represents the payload for mail received notifications.
func NewMailReceivedPayload ¶
func NewMailReceivedPayload(from string, subject string, contentPreview string) *MailReceivedPayload
NewMailReceivedPayload creates a new MailReceivedPayload with the given from, subject and content preview.
func (*MailReceivedPayload) GetData ¶
func (p *MailReceivedPayload) GetData() map[string]string
GetData returns the ready to send data for the payload.
func (*MailReceivedPayload) GetType ¶
func (p *MailReceivedPayload) GetType() string
GetType returns the type of the payload.
Click to show internal directories.
Click to hide internal directories.