Documentation ¶
Index ¶
- Constants
- func AlbumNotFound() *pyrin.Error
- func ArtistNotFound() *pyrin.Error
- func Body[T pyrin.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 ChangePasswordBody
- type CreateAlbum
- type CreateAlbumBody
- type EditArtistBody
- type Export
- type ExportAlbum
- type ExportArtist
- type ExportTrack
- type PatchAlbumBody
- type PatchTrackBody
- type UploadTracksBody
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 ChangePasswordBody ¶ added in v0.17.0
type CreateAlbum ¶ added in v0.17.0
type CreateAlbum struct {
AlbumId string `json:"albumId"`
}
type CreateAlbumBody ¶ added in v0.17.0
func (CreateAlbumBody) Schema ¶ added in v0.17.0
func (CreateAlbumBody) Schema() jio.Schema
type EditArtistBody ¶ added in v0.17.0
type EditArtistBody struct {
Name *string `json:"name"`
}
type Export ¶ added in v0.16.2
type Export struct { Artists []ExportArtist `json:"artists"` Albums []ExportAlbum `json:"albums"` Tracks []ExportTrack `json:"tracks"` }
type ExportAlbum ¶ added in v0.16.2
type ExportArtist ¶ added in v0.16.2
type ExportTrack ¶ added in v0.16.2
type ExportTrack struct { Id string `json:"id"` Name string `json:"name"` AlbumId string `json:"albumId"` ArtistId string `json:"artistId"` Number int64 `json:"number"` Duration int64 `json:"duration"` Year int64 `json:"year"` ExportName string `json:"exportName"` OriginalFilename string `json:"originalFilename"` MobileFilename string `json:"mobileFilename"` Created int64 `json:"created"` Tags []string `json:"tags"` }
type PatchAlbumBody ¶ added in v0.16.2
type PatchTrackBody ¶ added in v0.16.2
type UploadTracksBody ¶ added in v0.17.0
type UploadTracksBody struct {
ForceExtractNumber bool `json:"forceExtractNumber"`
}
Click to show internal directories.
Click to hide internal directories.