Documentation ¶
Index ¶
- type API
- func (api *API) AddHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) CurrentHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) JumpHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) ListHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) NextHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) OpenHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) PauseHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) PlayHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) PreviousHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) SocketHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) Start() (err error)
- func (api *API) StatisticsHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) StatusHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) StopHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) VersionHandler(w http.ResponseWriter, r *http.Request)
- type Command
- type CommandResponse
- type Context
- type ControlWebsocket
- type Event
- type Route
- type Song
- type Status
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) AddHandler ¶
func (api *API) AddHandler(w http.ResponseWriter, r *http.Request)
func (*API) CurrentHandler ¶
func (api *API) CurrentHandler(w http.ResponseWriter, r *http.Request)
func (*API) JumpHandler ¶ added in v1.5.0
func (api *API) JumpHandler(w http.ResponseWriter, r *http.Request)
func (*API) ListHandler ¶
func (api *API) ListHandler(w http.ResponseWriter, r *http.Request)
func (*API) NextHandler ¶
func (api *API) NextHandler(w http.ResponseWriter, r *http.Request)
func (*API) OpenHandler ¶
func (api *API) OpenHandler(w http.ResponseWriter, r *http.Request)
func (*API) PauseHandler ¶
func (api *API) PauseHandler(w http.ResponseWriter, r *http.Request)
func (*API) PlayHandler ¶
func (api *API) PlayHandler(w http.ResponseWriter, r *http.Request)
func (*API) PreviousHandler ¶ added in v1.5.0
func (api *API) PreviousHandler(w http.ResponseWriter, r *http.Request)
func (*API) SocketHandler ¶
func (api *API) SocketHandler(w http.ResponseWriter, r *http.Request)
func (*API) StatisticsHandler ¶ added in v1.5.0
func (api *API) StatisticsHandler(w http.ResponseWriter, r *http.Request)
func (*API) StatusHandler ¶
func (api *API) StatusHandler(w http.ResponseWriter, r *http.Request)
func (*API) StopHandler ¶
func (api *API) StopHandler(w http.ResponseWriter, r *http.Request)
func (*API) VersionHandler ¶ added in v1.5.2
func (api *API) VersionHandler(w http.ResponseWriter, r *http.Request)
type CommandResponse ¶
type ControlWebsocket ¶
type ControlWebsocket struct {
// contains filtered or unexported fields
}
func NewControlWebsocket ¶
func NewControlWebsocket(ws *websocket.Conn, readOnly bool, player player.MusicPlayer, user string) (cws *ControlWebsocket)
func (*ControlWebsocket) Start ¶
func (cws *ControlWebsocket) Start()
Click to show internal directories.
Click to hide internal directories.