subsonic

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionGet     = "get"
	ActionStatus  = "status"
	ActionSet     = "set"
	ActionStart   = "start"
	ActionStop    = "stop"
	ActionSkip    = "skip"
	ActionAdd     = "add"
	ActionClear   = "clear"
	ActionRemove  = "remove"
	ActionShuffle = "shuffle"
	ActionSetGain = "setGain"
)
View Source
const Version = "1.16.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	http.Handler
	// contains filtered or unexported fields
}

func New

func New(ds model.DataStore, artwork artwork.Artwork, streamer core.MediaStreamer, archiver core.Archiver,
	players core.Players, externalMetadata core.ExternalMetadata, scanner scanner.Scanner, broker events.Broker,
	playlists core.Playlists, scrobbler scrobbler.PlayTracker, share core.Share) *Router

func (*Router) CreateBookmark added in v0.49.0

func (api *Router) CreateBookmark(r *http.Request) (*responses.Subsonic, error)

func (*Router) CreateInternetRadio added in v0.49.0

func (api *Router) CreateInternetRadio(r *http.Request) (*responses.Subsonic, error)

func (*Router) CreatePlaylist added in v0.49.0

func (api *Router) CreatePlaylist(r *http.Request) (*responses.Subsonic, error)

func (*Router) CreateShare added in v0.49.0

func (api *Router) CreateShare(r *http.Request) (*responses.Subsonic, error)

func (*Router) DeleteBookmark added in v0.49.0

func (api *Router) DeleteBookmark(r *http.Request) (*responses.Subsonic, error)

func (*Router) DeleteInternetRadio added in v0.49.0

func (api *Router) DeleteInternetRadio(r *http.Request) (*responses.Subsonic, error)

func (*Router) DeletePlaylist added in v0.49.0

func (api *Router) DeletePlaylist(r *http.Request) (*responses.Subsonic, error)

func (*Router) DeleteShare added in v0.49.0

func (api *Router) DeleteShare(r *http.Request) (*responses.Subsonic, error)

func (*Router) Download added in v0.49.0

func (api *Router) Download(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error)

func (*Router) GetAlbum added in v0.49.0

func (api *Router) GetAlbum(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetAlbumInfo added in v0.49.0

func (api *Router) GetAlbumInfo(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetAlbumList added in v0.49.0

func (api *Router) GetAlbumList(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error)

func (*Router) GetAlbumList2 added in v0.49.0

func (api *Router) GetAlbumList2(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error)

func (*Router) GetArtist added in v0.49.0

func (api *Router) GetArtist(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetArtistInfo added in v0.49.0

func (api *Router) GetArtistInfo(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetArtistInfo2 added in v0.49.0

func (api *Router) GetArtistInfo2(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetArtists added in v0.49.0

func (api *Router) GetArtists(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetAvatar added in v0.49.0

func (api *Router) GetAvatar(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error)

func (*Router) GetBookmarks added in v0.49.0

func (api *Router) GetBookmarks(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetCoverArt added in v0.49.0

func (api *Router) GetCoverArt(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error)

func (*Router) GetGenres added in v0.49.0

func (api *Router) GetGenres(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetIndexes added in v0.49.0

func (api *Router) GetIndexes(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetInternetRadios added in v0.49.0

func (api *Router) GetInternetRadios(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetLicense added in v0.49.0

func (api *Router) GetLicense(_ *http.Request) (*responses.Subsonic, error)

func (*Router) GetLyrics added in v0.49.0

func (api *Router) GetLyrics(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetLyricsBySongId added in v0.51.0

func (api *Router) GetLyricsBySongId(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetMusicDirectory added in v0.49.0

func (api *Router) GetMusicDirectory(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetMusicFolders added in v0.49.0

func (api *Router) GetMusicFolders(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetNowPlaying added in v0.49.0

func (api *Router) GetNowPlaying(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetOpenSubsonicExtensions added in v0.50.0

func (api *Router) GetOpenSubsonicExtensions(_ *http.Request) (*responses.Subsonic, error)

func (*Router) GetPlayQueue added in v0.49.0

func (api *Router) GetPlayQueue(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetPlaylist added in v0.49.0

func (api *Router) GetPlaylist(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetPlaylists added in v0.49.0

func (api *Router) GetPlaylists(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetRandomSongs added in v0.49.0

func (api *Router) GetRandomSongs(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetScanStatus added in v0.49.0

func (api *Router) GetScanStatus(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetShares added in v0.49.0

func (api *Router) GetShares(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetSimilarSongs added in v0.49.0

func (api *Router) GetSimilarSongs(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetSimilarSongs2 added in v0.49.0

func (api *Router) GetSimilarSongs2(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetSong added in v0.49.0

func (api *Router) GetSong(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetSongsByGenre added in v0.49.0

func (api *Router) GetSongsByGenre(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetStarred added in v0.49.0

func (api *Router) GetStarred(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetStarred2 added in v0.49.0

func (api *Router) GetStarred2(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetTopSongs added in v0.49.0

func (api *Router) GetTopSongs(r *http.Request) (*responses.Subsonic, error)

func (*Router) GetUser added in v0.49.0

func (api *Router) GetUser(r *http.Request) (*responses.Subsonic, error)

TODO This is a placeholder. The real one has to read this info from a config file or the database

func (*Router) GetUsers added in v0.49.0

func (api *Router) GetUsers(r *http.Request) (*responses.Subsonic, error)

func (*Router) JukeboxControl added in v0.50.0

func (api *Router) JukeboxControl(r *http.Request) (*responses.Subsonic, error)

func (*Router) Ping added in v0.49.0

func (api *Router) Ping(_ *http.Request) (*responses.Subsonic, error)

func (*Router) SavePlayQueue added in v0.49.0

func (api *Router) SavePlayQueue(r *http.Request) (*responses.Subsonic, error)

func (*Router) Scrobble added in v0.49.0

func (api *Router) Scrobble(r *http.Request) (*responses.Subsonic, error)

func (*Router) Search2 added in v0.49.0

func (api *Router) Search2(r *http.Request) (*responses.Subsonic, error)

func (*Router) Search3 added in v0.49.0

func (api *Router) Search3(r *http.Request) (*responses.Subsonic, error)

func (*Router) SetRating added in v0.49.0

func (api *Router) SetRating(r *http.Request) (*responses.Subsonic, error)

func (*Router) Star added in v0.49.0

func (api *Router) Star(r *http.Request) (*responses.Subsonic, error)

func (*Router) StartScan added in v0.49.0

func (api *Router) StartScan(r *http.Request) (*responses.Subsonic, error)

func (*Router) Stream added in v0.49.0

func (api *Router) Stream(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error)

func (*Router) Unstar added in v0.49.0

func (api *Router) Unstar(r *http.Request) (*responses.Subsonic, error)

func (*Router) UpdateInternetRadio added in v0.49.0

func (api *Router) UpdateInternetRadio(r *http.Request) (*responses.Subsonic, error)

func (*Router) UpdatePlaylist added in v0.49.0

func (api *Router) UpdatePlaylist(r *http.Request) (*responses.Subsonic, error)

func (*Router) UpdateShare added in v0.49.0

func (api *Router) UpdateShare(r *http.Request) (*responses.Subsonic, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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