Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Id bson.ObjectId `json:"id" bson:"_id,omitempty"` // Userid bson.ObjectId `json:"userid" bson:"userid"` Token string `json:"token" bson:"token"` Name string `json:"name" bson:"name"` Location string `json:"location" bson:"location"` }
User represents the structure of our resource
type Job ¶
type Job struct { Id bson.ObjectId `json:"id" bson:"_id"` Deviceid string `json:"deviceid" bson:"deviceid"` Mediaid string `json:"mediaid" bson:"mediaid"` Token string `json:"token" bson:"token"` Name string `json:"name" bson:"name"` Cron string `json:"cron" bson:"cron"` CronEntryid int `json:"cronentryid" bson:"cronentryid"` Speak string `json:"speak" bson:"speak"` Activated bool `json:"activated" bson:"activated"` }
User represents the structure of our resource
type Media ¶
type Media struct { Id bson.ObjectId `json:"id" bson:"_id,omitempty"` //Jobid bson.ObjectId `json:"jobid" bson:"jobid"` // Userid bson.ObjectId `json:"userid" bson:"userid"` Gridfsid string `json:"gridfsid" bson:"gridfsid"` Name string `json:"name" bson:"name"` Category string `json:"category" bson:"category"` Tag string `json:"tag" bson:"tag"` Tags []string `json:"tag" bson:"tags"` Size int64 `json:"size" bson:"size"` TSize string `json:"tsize" bson:"tsize"` Description string `json:"description" bson:"description"` Submedia []*Submedia `json:"submedia"` Thumbnail bson.Binary `json:"thumbnail" bson:"thumbnail"` }
type User ¶
type User struct { Id bson.ObjectId `json:"id" bson:"_id"` Token string `json:"token" bson:"token"` Validated string `json:"validated" bson:"validated"` Nickname string `json:"nickname" bson:"nickname"` Email string `json:"email" bson:"email"` }
User represents the structure of our resource
Click to show internal directories.
Click to hide internal directories.