Documentation ¶
Index ¶
- Variables
- func StrToUint(s string) uint
- func TransFormSong(song *models.Song) *songResponse
- func TransformAlbum(album *models.Album) *albumResponse
- func TransformAlbums(albums ...*models.Album) []*albumResponse
- func TransformArtist(artist *models.Artist) *artistResponse
- func TransformArtists(artists ...*models.Artist) []*artistResponse
- func TransformImage(image *models.Image) *imageResponse
- func TransformPlaylist(playlist *models.Playlist) *playlistResponse
- func TransformPlaylists(playlists ...*models.Playlist) []*playlistResponse
- func TransformSongs(songs ...*models.Song) []*songResponse
- type UserLoginClaim
Constants ¶
This section is empty.
Variables ¶
View Source
var AlbumController albumController
AlbumController Contains the actions for the 'albums' endpoint.
View Source
var ArtistController artistController
ArtistController Contains the actions for the 'artists' endpoint.
View Source
var AuthController authController
AuthController Contains the actions for authentication.
View Source
var PlaylistController playlistController
PlaylistController Contains the actions for the 'playlist' endpoint.
View Source
var Secret = []byte("secret")
Secret used for signing tokens.
View Source
var SongController songController
SongController Contains the actions for the 'songs' endpoint.
View Source
var UserController userController
UserController Contains the actions for the 'users' endpoint.
Functions ¶
func TransFormSong ¶
func TransformAlbum ¶
func TransformAlbums ¶
func TransformArtist ¶
func TransformArtists ¶
func TransformImage ¶
func TransformPlaylist ¶
func TransformPlaylists ¶
func TransformSongs ¶
Types ¶
type UserLoginClaim ¶
type UserLoginClaim struct { ID uint `json:"id"` Username string `json:"username"` jwt.StandardClaims }
UserLoginClaim is the claim that will be used for jwt.
Click to show internal directories.
Click to hide internal directories.