Documentation ¶
Index ¶
- Constants
- func GetAll(dbConn *db.MConn, paginator *gottp.Paginator, user string, appName string, ...) *[]SentItem
- func Insert(dbConn *db.MConn, ntfInst *SentItem) string
- func MarkRead(dbConn *db.MConn, user string, appName string, org string) error
- func Update(dbConn *db.MConn, id bson.ObjectId, doc *utils.M) error
- type SentItem
Constants ¶
View Source
const (
SentCollection = "sent_notifications"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SentItem ¶
type SentItem struct { db.BaseModel `bson:",inline"` Organization string `json:"org" bson:"org" required:"true"` AppName string `json:"app_name" bson:"app_name" required:"true"` Topic string `json:"topic" bson:"topic" required:"true"` User string `json:"user" bson:"user" required:"true"` DestinationUri string `json:"destination_uri" bson:"destination_uri" required:"true"` Text string `json:"text" bson:"text" required:"true"` IsRead bool `json:"is_read" bson:"is_read"` }
Click to show internal directories.
Click to hide internal directories.