Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Notification ¶
type Notification struct {
mixin.Model
To string `json:"to"`
Channel Channel `json:"channel"`
TemplateId string `json:"templateId"`
Status NotificationStatus `json:"status"`
ProviderId string `json:"providerId"`
ExternalId string `json:"externalId"`
// Data stored as JSON in datastore
Data Map `json:"data,omitempty" datastore:"-"`
Data_ string `json:"-" datastore:",noindex"`
// Arbitrary metadata
Metadata Map `json:"metadata,omitempty" datastore:"-"`
Metadata_ string `json:"-" datastore:",noindex"`
}
func New ¶
func New(db *datastore.Datastore) *Notification
func (*Notification) Defaults ¶
func (n *Notification) Defaults()
func (*Notification) Init ¶
func (n *Notification) Init(db *datastore.Datastore)
func (Notification) Kind ¶
func (n Notification) Kind() string
type NotificationStatus ¶
type NotificationStatus string
const ( Pending NotificationStatus = "pending" Sent NotificationStatus = "sent" Failed NotificationStatus = "failed" )
Click to show internal directories.
Click to hide internal directories.