Documentation ¶
Index ¶
- type Router
- func (r *Router) AlbumsAlbum(c echo.Context) (err error)
- func (r *Router) AlbumsArt(c echo.Context) (err error)
- func (r *Router) AlbumsArtists(c echo.Context) (err error)
- func (r *Router) AlbumsIndex(c echo.Context) (err error)
- func (r *Router) AlbumsNew(c echo.Context) (err error)
- func (r *Router) AlbumsRandom(c echo.Context) (err error)
- func (r *Router) ArtistsIndex(c echo.Context) (err error)
- func (r *Router) ArtistsNew(c echo.Context) (err error)
- func (r *Router) GenresIndex(c echo.Context) (err error)
- func (r *Router) InitEnv()
- func (r *Router) PlaylistsIndex(c echo.Context) (err error)
- func (r *Router) PlaylistsIndexPost(c echo.Context) (err error)
- func (r *Router) PlaylistsPlaylist(c echo.Context) (err error)
- func (r *Router) PlaylistsPlaylistDelete(c echo.Context) (err error)
- func (r *Router) PlaylistsPlaylistPut(c echo.Context) (err error)
- func (r *Router) PlaylistsPlaylistTrack(c echo.Context) (err error)
- func (r *Router) SearchIndex(c echo.Context) (err error)
- func (r *Router) SystemInfo(c echo.Context) (err error)
- func (r *Router) SystemSync(c echo.Context) (err error)
- func (r *Router) TracksFavourites(c echo.Context) (err error)
- func (r *Router) TracksIndex(c echo.Context) (err error)
- func (r *Router) TracksLike(c echo.Context) (err error)
- func (r *Router) TracksNew(c echo.Context) (err error)
- func (r *Router) TracksPlay(c echo.Context) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { Client *mongo.Client Env struct { Host string Port string DB string DBHost string DBPort string DBString string AlbumArtPath string MusicPath string SpotifyClient string SpotifySecret string } }
Router structure
func (*Router) AlbumsAlbum ¶
AlbumsAlbum - Get a specific album
func (*Router) AlbumsArtists ¶
AlbumsArtists - Get albums by a particular artist
func (*Router) AlbumsIndex ¶
AlbumsIndex - Get a stream of albums
func (*Router) AlbumsRandom ¶
AlbumsRandom - Get 10 random albums
func (*Router) ArtistsIndex ¶
ArtistsIndex - Get a stream of artists
func (*Router) ArtistsNew ¶
ArtistsNew - Get the 10 newest artists
func (*Router) GenresIndex ¶
GenresIndex - Get all the genres
func (*Router) InitEnv ¶
func (r *Router) InitEnv()
InitEnv - Initialise the Env based variabls on a Router struct
func (*Router) PlaylistsIndex ¶
PlaylistsIndex - Get your playlists GET /playlists/
func (*Router) PlaylistsIndexPost ¶
PlaylistsIndexPost - Create a new playlist POST /playlists
func (*Router) PlaylistsPlaylist ¶
PlaylistsPlaylist - Get a particular playlist GET /playlists/:id
func (*Router) PlaylistsPlaylistDelete ¶
PlaylistsPlaylistDelete - Remove a playlist DELETE /playlists/:id
func (*Router) PlaylistsPlaylistPut ¶
PlaylistsPlaylistPut - Update a playlists name or tracks PUT /playlists/:id
func (*Router) PlaylistsPlaylistTrack ¶
PlaylistsPlaylistTrack - Add a track to an existing playlist GET /playlists/:id/:track
func (*Router) SearchIndex ¶
SearchIndex - Search
func (*Router) SystemInfo ¶
SystemInfo - Waveline info
func (*Router) SystemSync ¶
SystemSync - Sync filesystem
func (*Router) TracksFavourites ¶
TracksFavourites - Get favourited tracks /tracks/favourites/
func (*Router) TracksIndex ¶
TracksIndex - Get track list GET /tracks/
func (*Router) TracksLike ¶
TracksLike - Set a track to liked/unliked GET /tracks/like/:id
func (*Router) TracksPlay ¶
TracksPlay - Play a specified track GET /tracks/play/:id