Documentation ¶
Index ¶
- Constants
- func AlbumNotFound() *pyrin.Error
- func ArtistNotFound() *pyrin.Error
- func Body[T types.Body](c pyrin.Context) (T, error)
- func ConvertDBAlbum(c pyrin.Context, album database.Album) types.Album
- func ConvertDBTrack(c pyrin.Context, track database.Track) types.Track
- func InstallAlbumHandlers(app core.App, group pyrin.Group)
- func InstallArtistHandlers(app core.App, group pyrin.Group)
- func InstallAuthHandlers(app core.App, group pyrin.Group)
- func InstallHandlers(app core.App, g pyrin.Group)
- func InstallPlaylistHandlers(app core.App, group pyrin.Group)
- func InstallQueueHandlers(app core.App, group pyrin.Group)
- func InstallSystemHandlers(app core.App, group pyrin.Group)
- func InstallTagHandlers(app core.App, group pyrin.Group)
- func InstallTrackHandlers(app core.App, group pyrin.Group)
- func InvalidFilter(err error) *pyrin.Error
- func InvalidSort(err error) *pyrin.Error
- func ParseQueryBool(s string) bool
- func RegisterHandlers(app core.App, router pyrin.Router)
- func Server(app core.App) (*pyrin.Server, error)
- func TrackNotFound() *pyrin.Error
- func User(app core.App, c pyrin.Context) (*database.User, error)
- type Export
- type ExportAlbum
- type ExportArtist
- type ExportTrack
- type PatchAlbumBody
- type PatchTrackBody
- type PostAlbumImport
- type PostAlbumImportBody
Constants ¶
View Source
const ( ErrTypeArtistNotFound pyrin.ErrorType = "ARTIST_NOT_FOUND" ErrTypeAlbumNotFound pyrin.ErrorType = "ALBUM_NOT_FOUND" ErrTypeTrackNotFound pyrin.ErrorType = "TRACK_NOT_FOUND" ErrTypeInvalidFilter pyrin.ErrorType = "INVALID_FILTER" ErrTypeInvalidSort pyrin.ErrorType = "INVALID_SORT" )
Variables ¶
This section is empty.
Functions ¶
func AlbumNotFound ¶ added in v0.15.0
func ArtistNotFound ¶ added in v0.15.0
func ConvertDBAlbum ¶ added in v0.16.2
func ConvertDBTrack ¶ added in v0.15.4
func InstallQueueHandlers ¶
TODO(patrik): Add back
func InstallTagHandlers ¶
TODO(patrik): Add back
func InvalidFilter ¶ added in v0.15.0
func InvalidSort ¶ added in v0.15.2
func ParseQueryBool ¶ added in v0.15.4
func TrackNotFound ¶ added in v0.15.0
Types ¶
type Export ¶ added in v0.16.2
type Export struct { Artists []ExportArtist Albums []ExportAlbum Tracks []ExportTrack }
type ExportAlbum ¶ added in v0.16.2
type ExportArtist ¶ added in v0.16.2
type ExportTrack ¶ added in v0.16.2
type PatchAlbumBody ¶ added in v0.16.2
type PatchTrackBody ¶ added in v0.16.2
type PostAlbumImport ¶ added in v0.16.2
type PostAlbumImport struct {
AlbumId string `json:"albumId"`
}
type PostAlbumImportBody ¶ added in v0.16.2
func (PostAlbumImportBody) Schema ¶ added in v0.16.2
func (PostAlbumImportBody) Schema() jio.Schema
Click to show internal directories.
Click to hide internal directories.