api

package
v0.0.0-...-f7c182b Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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) ParamTime

func (c *BaseAPIController) ParamTime(param string, def time.Time) time.Time

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 ControllerInterface interface {
	GetString(key string, def ...string) string
	CustomAbort(status int, body string)
	SendError(errorCode int, message ...interface{})
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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