routes

package
v0.0.0-...-fd3d004 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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

func (r *Router) AlbumsAlbum(c echo.Context) (err error)

AlbumsAlbum - Get a specific album

func (*Router) AlbumsArt

func (r *Router) AlbumsArt(c echo.Context) (err error)

AlbumsArt - Find artwork from a file hash

func (*Router) AlbumsArtists

func (r *Router) AlbumsArtists(c echo.Context) (err error)

AlbumsArtists - Get albums by a particular artist

func (*Router) AlbumsIndex

func (r *Router) AlbumsIndex(c echo.Context) (err error)

AlbumsIndex - Get a stream of albums

func (*Router) AlbumsNew

func (r *Router) AlbumsNew(c echo.Context) (err error)

AlbumsNew - Get the 10 newest albums

func (*Router) AlbumsRandom

func (r *Router) AlbumsRandom(c echo.Context) (err error)

AlbumsRandom - Get 10 random albums

func (*Router) ArtistsIndex

func (r *Router) ArtistsIndex(c echo.Context) (err error)

ArtistsIndex - Get a stream of artists

func (*Router) ArtistsNew

func (r *Router) ArtistsNew(c echo.Context) (err error)

ArtistsNew - Get the 10 newest artists

func (*Router) GenresIndex

func (r *Router) GenresIndex(c echo.Context) (err error)

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

func (r *Router) PlaylistsIndex(c echo.Context) (err error)

PlaylistsIndex - Get your playlists GET /playlists/

func (*Router) PlaylistsIndexPost

func (r *Router) PlaylistsIndexPost(c echo.Context) (err error)

PlaylistsIndexPost - Create a new playlist POST /playlists

func (*Router) PlaylistsPlaylist

func (r *Router) PlaylistsPlaylist(c echo.Context) (err error)

PlaylistsPlaylist - Get a particular playlist GET /playlists/:id

func (*Router) PlaylistsPlaylistDelete

func (r *Router) PlaylistsPlaylistDelete(c echo.Context) (err error)

PlaylistsPlaylistDelete - Remove a playlist DELETE /playlists/:id

func (*Router) PlaylistsPlaylistPut

func (r *Router) PlaylistsPlaylistPut(c echo.Context) (err error)

PlaylistsPlaylistPut - Update a playlists name or tracks PUT /playlists/:id

func (*Router) PlaylistsPlaylistTrack

func (r *Router) PlaylistsPlaylistTrack(c echo.Context) (err error)

PlaylistsPlaylistTrack - Add a track to an existing playlist GET /playlists/:id/:track

func (*Router) SearchIndex

func (r *Router) SearchIndex(c echo.Context) (err error)

SearchIndex - Search

func (*Router) SystemInfo

func (r *Router) SystemInfo(c echo.Context) (err error)

SystemInfo - Waveline info

func (*Router) SystemSync

func (r *Router) SystemSync(c echo.Context) (err error)

SystemSync - Sync filesystem

func (*Router) TracksFavourites

func (r *Router) TracksFavourites(c echo.Context) (err error)

TracksFavourites - Get favourited tracks /tracks/favourites/

func (*Router) TracksIndex

func (r *Router) TracksIndex(c echo.Context) (err error)

TracksIndex - Get track list GET /tracks/

func (*Router) TracksLike

func (r *Router) TracksLike(c echo.Context) (err error)

TracksLike - Set a track to liked/unliked GET /tracks/like/:id

func (*Router) TracksNew

func (r *Router) TracksNew(c echo.Context) (err error)

TracksFavourites - Get new tracks /tracks/new/

func (*Router) TracksPlay

func (r *Router) TracksPlay(c echo.Context) (err error)

TracksPlay - Play a specified track GET /tracks/play/:id

Jump to

Keyboard shortcuts

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