Documentation ¶
Index ¶
Constants ¶
View Source
const ( ARTIDS_COL = "artIds" ALERTS_COL = "alerts" // unused... Will be used with @AlertItem EXPRESSION_COL = "exps" CATEGORY_COL = "cats" UPLOADS_COL = "uploads" USERS_COL = "users" )
Variables ¶
View Source
var MongoInstance *mongo
Functions ¶
Types ¶
type ArtItem ¶
type ArtItem struct { MGID bson.ObjectId `json:"-" bson:"_id,omitempty"` Folder string `json:"folder"` FileName string `json:"filename"` OrgFileName string `json:"orgfilename"` Uploaded time.Time `json:"uploaded_on"` FileSize int `json:"file_size"` Width int `json:"width"` Height int `json:"height"` }
type CategoryItem ¶
type ExpressionItem ¶
type Upload ¶
type Upload struct { MGID bson.ObjectId `json:"-" bson:"_id,omitempty"` ImageID bson.ObjectId `json:"-" bson:"img_id` Expressions []bson.ObjectId `json:"expressions" bson:"exps"` // set if multiable are used (will always be 0 if empty) Tags []bson.ObjectId `json:"tags"` User bson.ObjectId `json:"user" bson:"user,omitempty"` Views int `json:"views"` }
Click to show internal directories.
Click to hide internal directories.