Documentation
¶
Overview ¶
THIS FILE IS GENERATED BY PYRIN GOGEN CODE GENERATOR
Index ¶
- Constants
- Variables
- type Album
- type ApiError
- type ApiResponse
- type Artist
- type Change
- type GetAlbumById
- type GetAlbumTracksById
- type GetAlbums
- type GetArtistAlbumsById
- type GetArtistById
- type GetArtists
- type GetSync
- type GetTags
- type GetTrackById
- type GetTracks
- type Map
- type PostQueue
- type Tag
- type Track
- type WorkDir
Constants ¶
View Source
const ( StatusSuccess = "success" StatusError = "error" )
Variables ¶
View Source
var ( ErrNoArtist = NewApiError(http.StatusNotFound, "Artist not found") ErrNoAlbum = NewApiError(http.StatusNotFound, "Album not found") ErrNoTrack = NewApiError(http.StatusNotFound, "Track not found") )
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
type ApiResponse ¶
type ApiResponse struct {
Status string `json:"status"`
Data any `json:"data,omitempty"`
Error *ApiError `json:"error,omitempty"`
}
func NewApiSuccessResponse ¶ added in v0.6.0
func NewApiSuccessResponse(data any) ApiResponse
type GetAlbumById ¶ added in v0.6.0
type GetAlbumById Album
type GetAlbumTracksById ¶ added in v0.6.0
type GetAlbumTracksById struct {
Tracks []Track `json:"tracks"`
}
type GetArtistAlbumsById ¶ added in v0.6.0
type GetArtistAlbumsById struct {
Albums []Album `json:"albums"`
}
type GetArtistById ¶ added in v0.6.0
type GetArtistById Artist
type GetArtists ¶ added in v0.6.0
type GetArtists struct {
Artists []Artist `json:"artists"`
}
type GetTrackById ¶ added in v0.6.0
type GetTrackById Track
type Track ¶ added in v0.9.0
type Track struct {
Id string `json:"id"`
Number int `json:"number"`
Name string `json:"name"`
CoverArt string `json:"coverArt"`
Duration int `json:"duration"`
BestQualityFile string `json:"bestQualityFile"`
MobileQualityFile string `json:"mobileQualityFile"`
AlbumId string `json:"albumId"`
ArtistId string `json:"artistId"`
AlbumName string `json:"albumName"`
ArtistName string `json:"artistName"`
}
type WorkDir ¶ added in v0.3.0
type WorkDir string
func (WorkDir) MobileTracksDir ¶ added in v0.3.0
func (WorkDir) OriginalTracksDir ¶ added in v0.3.0
func (WorkDir) TranscodeDir ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.