Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Media ¶
type Media struct { Id primitive.ObjectID `json:"id" bson:"_id,omitempty"` // 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 primitive.Binary `json:"thumbnail" bson:"thumbnail"` Ext string `json:"ext" bson:"ext"` Mime string `json:"mime" bson:"mime"` }
type Submedia ¶
type Submedia struct { Id primitive.ObjectID `json:"id" bson:"_id,omitempty"` Fatherid string `json:"fatherid" bson:"fatherid"` Gridfsid string `json:"gridfsid" bson:"gridfsid"` Name string `json:"name" bson:"name"` Size int `json:"size" bson:"size"` TSize string `json:"tsize" bson:"tsize"` Ext string `json:"ext" bson:"ext"` Mime string `json:"mime" bson:"mime"` }
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.