Documentation ¶
Index ¶
- Constants
- func AlbumNotFound() *api.Error
- func ArtistNotFound() *api.Error
- func Body[T types.Body](c echo.Context) (T, error)
- func InstallAlbumHandlers(app core.App, group Group)
- func InstallArtistHandlers(app core.App, group Group)
- func InstallAuthHandlers(app core.App, group Group)
- func InstallHandlers(app core.App, g Group)
- func InstallPlaylistHandlers(app core.App, group Group)
- func InstallQueueHandlers(app core.App, group Group)
- func InstallSyncHandlers(app core.App, group Group)
- func InstallSystemHandlers(app core.App, group Group)
- func InstallTagHandlers(app core.App, group Group)
- func InstallTrackHandlers(app core.App, group Group)
- func InvalidFilter(err error) *api.Error
- func InvalidSort(err error) *api.Error
- func RequireSetup(app core.App) echo.MiddlewareFunc
- func RouteNotFound() *api.Error
- func Server(app core.App) (*echo.Echo, error)
- func SuccessResponse(data any) api.Response
- func TrackNotFound() *api.Error
- func User(app core.App, c echo.Context) (*database.User, error)
- type Group
- type Handler
Constants ¶
View Source
const ( ErrTypeArtistNotFound api.ErrorType = "ARTIST_NOT_FOUND" ErrTypeAlbumNotFound api.ErrorType = "ALBUM_NOT_FOUND" ErrTypeTrackNotFound api.ErrorType = "TRACK_NOT_FOUND" ErrTypeRouteNotFound api.ErrorType = "ROUTE_NOT_FOUND" ErrTypeInvalidFilter api.ErrorType = "INVALID_FILTER" ErrTypeInvalidSort api.ErrorType = "INVALID_SORT" )
View Source
const ErrTypeUnknownError api.ErrorType = "UNKNOWN_ERROR"
Variables ¶
This section is empty.
Functions ¶
func AlbumNotFound ¶ added in v0.15.0
func ArtistNotFound ¶ added in v0.15.0
func InstallAlbumHandlers ¶
func InstallArtistHandlers ¶
func InstallAuthHandlers ¶
func InstallHandlers ¶
func InstallPlaylistHandlers ¶
func InstallQueueHandlers ¶
func InstallSyncHandlers ¶
func InstallSystemHandlers ¶
func InstallTagHandlers ¶
func InstallTrackHandlers ¶
func InvalidFilter ¶ added in v0.15.0
func InvalidSort ¶ added in v0.15.2
func RequireSetup ¶
func RouteNotFound ¶ added in v0.15.0
func SuccessResponse ¶ added in v0.15.0
func TrackNotFound ¶ added in v0.15.0
Types ¶
Click to show internal directories.
Click to hide internal directories.