Documentation ¶
Index ¶
Constants ¶
View Source
const (
NotificationsCollection = "notifications"
)
Variables ¶
This section is empty.
Functions ¶
func InsertMany ¶
func InsertMany(items ...Notification) error
Types ¶
type EmailPayload ¶
type GithubStatusAPIPayload ¶
type Notification ¶
type Notification struct { ID bson.ObjectId `bson:"_id"` Subscriber event.Subscriber `bson:"subscriber"` Payload interface{} `bson:"payload"` SentAt time.Time `bson:"sent_at,omitempty"` Error string `bson:"error,omitempty"` }
func (*Notification) MarkError ¶
func (n *Notification) MarkError(sendErr error) error
func (*Notification) MarkSent ¶
func (n *Notification) MarkSent() error
Click to show internal directories.
Click to hide internal directories.