Documentation ¶
Index ¶
Constants ¶
View Source
const ( RoleMaster = "ROLE_MASTER" RoleAdmin = "ROLE_ADMIN" RoleUser = "ROLE_USER" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { Id bson.ObjectId `json:"id" bson:"_id"` Name string `json:"name" bson:"name"` Tracks []Track `json:"tracks" bson:"tracks"` Artist Artist `json:"artist" bson:"-"` ArtistRef bson.ObjectId `json:"-" bson:"artist"` Cover Image `json:"cover" bson:"cover"` Year int `json:"year" bson:"year"` }
func (Album) TrackExist ¶
type Track ¶
type Track struct { Number int `json:"number" bson:"number"` Name string `json:"name" bson:"name"` ArtistsRef []bson.ObjectId `json:"artists" bson:"artists"` Duration int `json:"duration" bson:"duration"` Bpm int `json:"bpm" bson:"bpm"` Path string `json:"path" bson:"path"` Url string `json:"url" bson:"url"` }
Click to show internal directories.
Click to hide internal directories.