Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct { ID primitive.ObjectID `bson:"_id" json:"id" example:"000000000000000000000000"` Titulo string `bson:"titulo" json:"titulo" example:"Example category"` Cor string `bson:"cor" json:"cor" example:"Red"` Active bool `bson:"active" json:"active" example:"true"` }
Category represents a model of categories
func GetFreeCategory ¶
func GetFreeCategory() *Category
type Video ¶
type Video struct { ID primitive.ObjectID `bson:"_id" json:"id" example:"000000000000000000000000"` CategoryID primitive.ObjectID `bson:"category_id" json:"categoriaID" example:"000000000000000000000000"` Titulo string `bson:"titulo" json:"titulo" example:"Example video"` Descricao string `bson:"descricao" json:"descricao" example:"Example description"` Url string `bson:"url" json:"url" example:"https://www.example-url.com"` Active bool `bson:"active" json:"active" example:"true"` }
Video represents a model of videos
Click to show internal directories.
Click to hide internal directories.