router

package
v0.0.0-...-e39b2f3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlbumInfoHandler

func AlbumInfoHandler(w http.ResponseWriter, r *http.Request)

AlbumInfoHandler return music list

func AlbumListHandler

func AlbumListHandler(w http.ResponseWriter, r *http.Request)

AlbumListHandler return album list

func IndexHandler

func IndexHandler(w http.ResponseWriter, r *http.Request)

IndexHandler /

func NewRouter

func NewRouter() *mux.Router

NewRouter api server router

Types

type AlbumListResponse

type AlbumListResponse struct {
	ID              string `json:"id"`
	Title           string `json:"title"`
	Artist          string `json:"album_artist"`
	AlbumPictureURL string `json:"album_picture_url"`
}

AlbumListResponse album

type AlbumListResponses

type AlbumListResponses []AlbumListResponse

AlbumListResponses album list

type MusicListResponse

type MusicListResponse struct {
	ID         string `json:"id"`
	Title      string `json:"title"`
	Artist     string `json:"album_artist"`
	Instrument string `json:"instrument"`
}

MusicListResponse music

type MusicListResponses

type MusicListResponses []MusicListResponse

MusicListResponses music list

Jump to

Keyboard shortcuts

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