Versions in this module Expand all Collapse all v0 v0.11.0 Mar 21, 2023 Changes in this version + func GetPresetURLNew(store store.Store, url string) echo.HandlerFunc + func Router(a API, fs fs.FS) *echo.Echo + func Start(e *echo.Echo, port int) error + type API struct + Discoverer *radio.Discoverer + Hub *hub.Hub + Store store.Store + func NewAPI(hub *hub.Hub, Discoverer *radio.Discoverer, store store.Store) API + func (a API) DeleteRadio(c echo.Context) error + func (a API) DiscoverRadios(c echo.Context) error + func (a API) GetBuild(c echo.Context) error + func (a API) GetPreset(c echo.Context) error + func (a API) GetRadio(c echo.Context) error + func (a API) GetState(c echo.Context) error + func (a API) ListPresets(c echo.Context) error + func (a API) ListRadios(c echo.Context) error + func (a API) ListStates(c echo.Context) error + func (a API) PostState(c echo.Context) error + func (a API) RadioMiddleware(next echo.HandlerFunc) echo.HandlerFunc + func (a API) RefreshRadioSubscription(c echo.Context) error + func (a API) RefreshRadioVolume(c echo.Context) error + func (a API) UpdatePreset(c echo.Context) error + func (a API) WS(upgrader *websocket.Upgrader) echo.HandlerFunc + type HTTPError struct + Message string + type PostState struct + AudioSource *string + Power *bool + Preset *int + Volume *int + VolumeDelta *int + type RadioContext struct + Radio hub.Radio