Documentation ¶
Index ¶
- func Validate(controller BaseAPIController)
- type AlbumListController
- func (c *AlbumListController) GetAlbumList()
- func (c *AlbumListController) GetAlbumList2()
- func (c *AlbumListController) GetNowPlaying()
- func (c *AlbumListController) GetRandomSongs()
- func (c *AlbumListController) GetStarred()
- func (c *AlbumListController) GetStarred2()
- func (c *AlbumListController) Prepare()
- type BaseAPIController
- func (c *BaseAPIController) NewEmpty() responses.Subsonic
- func (c *BaseAPIController) ParamBool(param string, def bool) bool
- func (c *BaseAPIController) ParamInt(param string, def int) int
- func (c *BaseAPIController) ParamInts(param string) []int
- func (c *BaseAPIController) ParamString(param string) string
- func (c *BaseAPIController) ParamStrings(param string) []string
- func (c *BaseAPIController) ParamTime(param string, def time.Time) time.Time
- func (c *BaseAPIController) ParamTimes(param string) []time.Time
- func (c *BaseAPIController) RequiredParamInt(param string, msg string) int
- func (c *BaseAPIController) RequiredParamString(param string, msg string) string
- func (c *BaseAPIController) RequiredParamStrings(param string, msg string) []string
- func (c *BaseAPIController) SendEmptyResponse()
- func (c *BaseAPIController) SendError(errorCode int, message ...interface{})
- func (c *BaseAPIController) SendResponse(response responses.Subsonic)
- func (c *BaseAPIController) ToAlbum(entry engine.Entry) responses.Child
- func (c *BaseAPIController) ToAlbums(entries engine.Entries) []responses.Child
- func (c *BaseAPIController) ToChild(entry engine.Entry) responses.Child
- func (c *BaseAPIController) ToChildren(entries engine.Entries) []responses.Child
- type BrowsingController
- func (c *BrowsingController) GetAlbum()
- func (c *BrowsingController) GetArtist()
- func (c *BrowsingController) GetArtists()
- func (c *BrowsingController) GetIndexes()
- func (c *BrowsingController) GetMusicDirectory()
- func (c *BrowsingController) GetMusicFolders()
- func (c *BrowsingController) GetSong()
- func (c *BrowsingController) Prepare()
- type ControllerInterface
- type MediaAnnotationController
- type MediaRetrievalController
- type PlaylistsController
- type SearchingController
- type StreamController
- type SystemController
- type UsersController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(controller BaseAPIController)
Types ¶
type AlbumListController ¶
type AlbumListController struct { BaseAPIController // contains filtered or unexported fields }
func (*AlbumListController) GetAlbumList ¶
func (c *AlbumListController) GetAlbumList()
func (*AlbumListController) GetAlbumList2 ¶
func (c *AlbumListController) GetAlbumList2()
func (*AlbumListController) GetNowPlaying ¶
func (c *AlbumListController) GetNowPlaying()
func (*AlbumListController) GetRandomSongs ¶
func (c *AlbumListController) GetRandomSongs()
func (*AlbumListController) GetStarred ¶
func (c *AlbumListController) GetStarred()
func (*AlbumListController) GetStarred2 ¶
func (c *AlbumListController) GetStarred2()
func (*AlbumListController) Prepare ¶
func (c *AlbumListController) Prepare()
type BaseAPIController ¶
type BaseAPIController struct{ beego.Controller }
func (*BaseAPIController) NewEmpty ¶
func (c *BaseAPIController) NewEmpty() responses.Subsonic
func (*BaseAPIController) ParamBool ¶
func (c *BaseAPIController) ParamBool(param string, def bool) bool
func (*BaseAPIController) ParamInt ¶
func (c *BaseAPIController) ParamInt(param string, def int) int
func (*BaseAPIController) ParamInts ¶
func (c *BaseAPIController) ParamInts(param string) []int
func (*BaseAPIController) ParamString ¶
func (c *BaseAPIController) ParamString(param string) string
func (*BaseAPIController) ParamStrings ¶
func (c *BaseAPIController) ParamStrings(param string) []string
func (*BaseAPIController) ParamTimes ¶
func (c *BaseAPIController) ParamTimes(param string) []time.Time
func (*BaseAPIController) RequiredParamInt ¶
func (c *BaseAPIController) RequiredParamInt(param string, msg string) int
func (*BaseAPIController) RequiredParamString ¶
func (c *BaseAPIController) RequiredParamString(param string, msg string) string
func (*BaseAPIController) RequiredParamStrings ¶
func (c *BaseAPIController) RequiredParamStrings(param string, msg string) []string
func (*BaseAPIController) SendEmptyResponse ¶
func (c *BaseAPIController) SendEmptyResponse()
func (*BaseAPIController) SendError ¶
func (c *BaseAPIController) SendError(errorCode int, message ...interface{})
func (*BaseAPIController) SendResponse ¶
func (c *BaseAPIController) SendResponse(response responses.Subsonic)
func (*BaseAPIController) ToAlbum ¶
func (c *BaseAPIController) ToAlbum(entry engine.Entry) responses.Child
func (*BaseAPIController) ToAlbums ¶
func (c *BaseAPIController) ToAlbums(entries engine.Entries) []responses.Child
func (*BaseAPIController) ToChild ¶
func (c *BaseAPIController) ToChild(entry engine.Entry) responses.Child
func (*BaseAPIController) ToChildren ¶
func (c *BaseAPIController) ToChildren(entries engine.Entries) []responses.Child
type BrowsingController ¶
type BrowsingController struct { BaseAPIController // contains filtered or unexported fields }
func (*BrowsingController) GetAlbum ¶
func (c *BrowsingController) GetAlbum()
func (*BrowsingController) GetArtist ¶
func (c *BrowsingController) GetArtist()
func (*BrowsingController) GetArtists ¶
func (c *BrowsingController) GetArtists()
func (*BrowsingController) GetIndexes ¶
func (c *BrowsingController) GetIndexes()
func (*BrowsingController) GetMusicDirectory ¶
func (c *BrowsingController) GetMusicDirectory()
func (*BrowsingController) GetMusicFolders ¶
func (c *BrowsingController) GetMusicFolders()
func (*BrowsingController) GetSong ¶
func (c *BrowsingController) GetSong()
func (*BrowsingController) Prepare ¶
func (c *BrowsingController) Prepare()
type ControllerInterface ¶
type MediaAnnotationController ¶
type MediaAnnotationController struct { BaseAPIController // contains filtered or unexported fields }
func (*MediaAnnotationController) Prepare ¶
func (c *MediaAnnotationController) Prepare()
func (*MediaAnnotationController) Scrobble ¶
func (c *MediaAnnotationController) Scrobble()
func (*MediaAnnotationController) SetRating ¶
func (c *MediaAnnotationController) SetRating()
func (*MediaAnnotationController) Star ¶
func (c *MediaAnnotationController) Star()
func (*MediaAnnotationController) Unstar ¶
func (c *MediaAnnotationController) Unstar()
type MediaRetrievalController ¶
type MediaRetrievalController struct { BaseAPIController // contains filtered or unexported fields }
func (*MediaRetrievalController) GetAvatar ¶
func (c *MediaRetrievalController) GetAvatar()
func (*MediaRetrievalController) GetCoverArt ¶
func (c *MediaRetrievalController) GetCoverArt()
func (*MediaRetrievalController) Prepare ¶
func (c *MediaRetrievalController) Prepare()
type PlaylistsController ¶
type PlaylistsController struct { BaseAPIController // contains filtered or unexported fields }
func (*PlaylistsController) CreatePlaylist ¶
func (c *PlaylistsController) CreatePlaylist()
func (*PlaylistsController) DeletePlaylist ¶
func (c *PlaylistsController) DeletePlaylist()
func (*PlaylistsController) GetPlaylist ¶
func (c *PlaylistsController) GetPlaylist()
func (*PlaylistsController) GetPlaylists ¶
func (c *PlaylistsController) GetPlaylists()
func (*PlaylistsController) Prepare ¶
func (c *PlaylistsController) Prepare()
func (*PlaylistsController) UpdatePlaylist ¶
func (c *PlaylistsController) UpdatePlaylist()
type SearchingController ¶
type SearchingController struct { BaseAPIController // contains filtered or unexported fields }
func (*SearchingController) Prepare ¶
func (c *SearchingController) Prepare()
func (*SearchingController) Search2 ¶
func (c *SearchingController) Search2()
func (*SearchingController) Search3 ¶
func (c *SearchingController) Search3()
type StreamController ¶
type StreamController struct { BaseAPIController // contains filtered or unexported fields }
func (*StreamController) Download ¶
func (c *StreamController) Download()
func (*StreamController) Prepare ¶
func (c *StreamController) Prepare()
func (*StreamController) Stream ¶
func (c *StreamController) Stream()
TODO Still getting the "Conn.Write wrote more than the declared Content-Length" error. Don't know if this causes any issues
type SystemController ¶
type SystemController struct{ BaseAPIController }
func (*SystemController) GetLicense ¶
func (c *SystemController) GetLicense()
func (*SystemController) Ping ¶
func (c *SystemController) Ping()
type UsersController ¶
type UsersController struct{ BaseAPIController }
func (*UsersController) GetUser ¶
func (c *UsersController) GetUser()
TODO This is a placeholder. The real one has to read this info from a config file or the database
Source Files ¶
Click to show internal directories.
Click to hide internal directories.