controllers

package
v0.0.0-...-cab0b4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2017 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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 StrToUint

func StrToUint(s string) uint

StrToUint does what the name implies.

func TransFormSong

func TransFormSong(song *models.Song) *songResponse

func TransformAlbum

func TransformAlbum(album *models.Album) *albumResponse

func TransformAlbums

func TransformAlbums(albums ...*models.Album) []*albumResponse

func TransformArtist

func TransformArtist(artist *models.Artist) *artistResponse

func TransformArtists

func TransformArtists(artists ...*models.Artist) []*artistResponse

func TransformImage

func TransformImage(image *models.Image) *imageResponse

func TransformPlaylist

func TransformPlaylist(playlist *models.Playlist) *playlistResponse

func TransformPlaylists

func TransformPlaylists(playlists ...*models.Playlist) []*playlistResponse

func TransformSongs

func TransformSongs(songs ...*models.Song) []*songResponse

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL