sent

package
v0.0.0-...-b75766b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SentCollection = "sent_notifications"
)

Variables

This section is empty.

Functions

func GetAll

func GetAll(dbConn *db.MConn, paginator *gottp.Paginator, user string, appName string, org string) *[]SentItem

func Insert

func Insert(dbConn *db.MConn, ntfInst *SentItem) string

func MarkRead

func MarkRead(dbConn *db.MConn, user string,
	appName string, org string) error

func Update

func Update(dbConn *db.MConn, id bson.ObjectId, doc *utils.M) error

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"`
}

func (*SentItem) IsValid

func (self *SentItem) IsValid() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL