ctrlsubsonic

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: GPL-3.0 Imports: 37 Imported by: 0

Documentation

Overview

Package ctrlsubsonic provides HTTP handlers for subsonic api

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	*ctrlbase.Controller
	CachePath      string
	CoverCachePath string
	PodcastsPath   string
	MusicPaths     paths.MusicPaths
	Jukebox        *jukebox.Jukebox
	Scrobblers     []scrobble.Scrobbler
	Podcasts       *podcasts.Podcasts
	Transcoder     transcode.Transcoder
}

func (*Controller) H

func (c *Controller) H(h handlerSubsonic) http.Handler

func (*Controller) HR

func (c *Controller) HR(h handlerSubsonicRaw) http.Handler

func (*Controller) ServeCreateBookmark added in v0.12.0

func (c *Controller) ServeCreateBookmark(r *http.Request) *spec.Response

func (*Controller) ServeCreateInternetRadioStation added in v0.15.0

func (c *Controller) ServeCreateInternetRadioStation(r *http.Request) *spec.Response

func (*Controller) ServeCreatePlaylist added in v0.9.3

func (c *Controller) ServeCreatePlaylist(r *http.Request) *spec.Response

func (*Controller) ServeCreatePodcastChannel added in v0.12.0

func (c *Controller) ServeCreatePodcastChannel(r *http.Request) *spec.Response

func (*Controller) ServeDeleteBookmark added in v0.12.0

func (c *Controller) ServeDeleteBookmark(r *http.Request) *spec.Response

func (*Controller) ServeDeleteInternetRadioStation added in v0.15.0

func (c *Controller) ServeDeleteInternetRadioStation(r *http.Request) *spec.Response

func (*Controller) ServeDeletePlaylist

func (c *Controller) ServeDeletePlaylist(r *http.Request) *spec.Response

func (*Controller) ServeDeletePodcastChannel added in v0.12.0

func (c *Controller) ServeDeletePodcastChannel(r *http.Request) *spec.Response

func (*Controller) ServeDeletePodcastEpisode added in v0.12.0

func (c *Controller) ServeDeletePodcastEpisode(r *http.Request) *spec.Response

func (*Controller) ServeDownloadPodcastEpisode added in v0.12.0

func (c *Controller) ServeDownloadPodcastEpisode(r *http.Request) *spec.Response

func (*Controller) ServeGetAlbum

func (c *Controller) ServeGetAlbum(r *http.Request) *spec.Response

func (*Controller) ServeGetAlbumList

func (c *Controller) ServeGetAlbumList(r *http.Request) *spec.Response

ServeGetAlbumList handles the getAlbumList view. changes to this function should be reflected in in _by_tags.go's getAlbumListTwo() function

func (*Controller) ServeGetAlbumListTwo

func (c *Controller) ServeGetAlbumListTwo(r *http.Request) *spec.Response

ServeGetAlbumListTwo handles the getAlbumList2 view. changes to this function should be reflected in in _by_folder.go's getAlbumList() function

func (*Controller) ServeGetArtist

func (c *Controller) ServeGetArtist(r *http.Request) *spec.Response

func (*Controller) ServeGetArtistInfo added in v0.9.2

func (c *Controller) ServeGetArtistInfo(r *http.Request) *spec.Response

func (*Controller) ServeGetArtistInfoTwo

func (c *Controller) ServeGetArtistInfoTwo(r *http.Request) *spec.Response

func (*Controller) ServeGetArtists

func (c *Controller) ServeGetArtists(r *http.Request) *spec.Response

func (*Controller) ServeGetAvatar added in v0.15.0

func (c *Controller) ServeGetAvatar(w http.ResponseWriter, r *http.Request) *spec.Response

func (*Controller) ServeGetBookmarks added in v0.12.0

func (c *Controller) ServeGetBookmarks(r *http.Request) *spec.Response

func (*Controller) ServeGetCoverArt

func (c *Controller) ServeGetCoverArt(w http.ResponseWriter, r *http.Request) *spec.Response

func (*Controller) ServeGetGenres

func (c *Controller) ServeGetGenres(r *http.Request) *spec.Response

func (*Controller) ServeGetIndexes

func (c *Controller) ServeGetIndexes(r *http.Request) *spec.Response

func (*Controller) ServeGetInternetRadioStations added in v0.15.0

func (c *Controller) ServeGetInternetRadioStations(r *http.Request) *spec.Response

func (*Controller) ServeGetLicence

func (c *Controller) ServeGetLicence(r *http.Request) *spec.Response

func (*Controller) ServeGetLyrics added in v0.15.1

func (c *Controller) ServeGetLyrics(r *http.Request) *spec.Response

func (*Controller) ServeGetMusicDirectory

func (c *Controller) ServeGetMusicDirectory(r *http.Request) *spec.Response

func (*Controller) ServeGetMusicFolders

func (c *Controller) ServeGetMusicFolders(r *http.Request) *spec.Response

func (*Controller) ServeGetNewestPodcasts added in v0.15.0

func (c *Controller) ServeGetNewestPodcasts(r *http.Request) *spec.Response

func (*Controller) ServeGetPlayQueue

func (c *Controller) ServeGetPlayQueue(r *http.Request) *spec.Response

func (*Controller) ServeGetPlaylist

func (c *Controller) ServeGetPlaylist(r *http.Request) *spec.Response

func (*Controller) ServeGetPlaylists

func (c *Controller) ServeGetPlaylists(r *http.Request) *spec.Response

func (*Controller) ServeGetPodcasts added in v0.12.0

func (c *Controller) ServeGetPodcasts(r *http.Request) *spec.Response

func (*Controller) ServeGetRandomSongs

func (c *Controller) ServeGetRandomSongs(r *http.Request) *spec.Response

func (*Controller) ServeGetScanStatus

func (c *Controller) ServeGetScanStatus(r *http.Request) *spec.Response

func (*Controller) ServeGetSimilarSongs added in v0.15.0

func (c *Controller) ServeGetSimilarSongs(r *http.Request) *spec.Response

func (*Controller) ServeGetSimilarSongsTwo added in v0.15.0

func (c *Controller) ServeGetSimilarSongsTwo(r *http.Request) *spec.Response

func (*Controller) ServeGetSong

func (c *Controller) ServeGetSong(r *http.Request) *spec.Response

func (*Controller) ServeGetSongsByGenre

func (c *Controller) ServeGetSongsByGenre(r *http.Request) *spec.Response

func (*Controller) ServeGetStarred added in v0.15.0

func (c *Controller) ServeGetStarred(r *http.Request) *spec.Response

func (*Controller) ServeGetStarredTwo added in v0.15.0

func (c *Controller) ServeGetStarredTwo(r *http.Request) *spec.Response

func (*Controller) ServeGetTopSongs added in v0.15.0

func (c *Controller) ServeGetTopSongs(r *http.Request) *spec.Response

func (*Controller) ServeGetUser

func (c *Controller) ServeGetUser(r *http.Request) *spec.Response

func (*Controller) ServeJukebox added in v0.8.6

func (c *Controller) ServeJukebox(r *http.Request) *spec.Response

func (*Controller) ServeNotFound

func (c *Controller) ServeNotFound(r *http.Request) *spec.Response

func (*Controller) ServePing

func (c *Controller) ServePing(r *http.Request) *spec.Response

func (*Controller) ServeRefreshPodcasts added in v0.12.0

func (c *Controller) ServeRefreshPodcasts(r *http.Request) *spec.Response

func (*Controller) ServeSavePlayQueue

func (c *Controller) ServeSavePlayQueue(r *http.Request) *spec.Response

func (*Controller) ServeScrobble

func (c *Controller) ServeScrobble(r *http.Request) *spec.Response

func (*Controller) ServeSearchThree

func (c *Controller) ServeSearchThree(r *http.Request) *spec.Response

func (*Controller) ServeSearchTwo

func (c *Controller) ServeSearchTwo(r *http.Request) *spec.Response

func (*Controller) ServeSetRating added in v0.15.0

func (c *Controller) ServeSetRating(r *http.Request) *spec.Response

func (*Controller) ServeStar added in v0.15.0

func (c *Controller) ServeStar(r *http.Request) *spec.Response

func (*Controller) ServeStartScan

func (c *Controller) ServeStartScan(r *http.Request) *spec.Response

func (*Controller) ServeStream

func (c *Controller) ServeStream(w http.ResponseWriter, r *http.Request) *spec.Response

func (*Controller) ServeUnstar added in v0.15.0

func (c *Controller) ServeUnstar(r *http.Request) *spec.Response

func (*Controller) ServeUpdateInternetRadioStation added in v0.15.0

func (c *Controller) ServeUpdateInternetRadioStation(r *http.Request) *spec.Response

func (*Controller) ServeUpdatePlaylist

func (c *Controller) ServeUpdatePlaylist(r *http.Request) *spec.Response

func (*Controller) WithParams

func (c *Controller) WithParams(next http.Handler) http.Handler

func (*Controller) WithRequiredParams

func (c *Controller) WithRequiredParams(next http.Handler) http.Handler

func (*Controller) WithUser

func (c *Controller) WithUser(next http.Handler) http.Handler

type CtxKey

type CtxKey int
const (
	CtxUser CtxKey = iota
	CtxSession
	CtxParams
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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