Documentation
¶
Overview ¶
DO NOT EDIT THIS: This file was generated by the Pyrin Golang Generator
THIS FILE IS GENERATED BY PYRIN GOGEN CODE GENERATOR
Index ¶
- func Request[D any](data RequestData) (*D, error)
- func Sprintf(format string, a ...any) string
- type Album
- type ApiError
- type ApiResponse
- type Artist
- type Client
- func (c *Client) AddItemsToPlaylist(id string, body PostPlaylistItemsByIdBody, options Options) (*any, error)
- func (c *Client) CreatePlaylist(body PostPlaylistBody, options Options) (*PostPlaylist, error)
- func (c *Client) CreatePlaylistFromFilter(body PostPlaylistFilterBody, options Options) (*PostPlaylist, error)
- func (c *Client) DeleteAlbum(id string, options Options) (*any, error)
- func (c *Client) DeletePlaylistItems(id string, body DeletePlaylistItemsByIdBody, options Options) (*any, error)
- func (c *Client) EditAlbum(id string, body PatchAlbumBody, options Options) (*any, error)
- func (c *Client) EditTrack(id string, body PatchTrackBody, options Options) (*any, error)
- func (c *Client) GetAlbumById(id string, options Options) (*GetAlbumById, error)
- func (c *Client) GetAlbumTracks(id string, options Options) (*GetAlbumTracksById, error)
- func (c *Client) GetAlbums(options Options) (*GetAlbums, error)
- func (c *Client) GetArtistAlbums(id string, options Options) (*GetArtistAlbumsById, error)
- func (c *Client) GetArtistById(id string, options Options) (*GetArtistById, error)
- func (c *Client) GetArtists(options Options) (*GetArtists, error)
- func (c *Client) GetMe(options Options) (*GetAuthMe, error)
- func (c *Client) GetPlaylistById(id string, options Options) (*GetPlaylistById, error)
- func (c *Client) GetPlaylists(options Options) (*GetPlaylists, error)
- func (c *Client) GetSystemInfo(options Options) (*GetSystemInfo, error)
- func (c *Client) GetTags(options Options) (*GetTags, error)
- func (c *Client) GetTrackById(id string, options Options) (*GetTrackById, error)
- func (c *Client) GetTracks(options Options) (*GetTracks, error)
- func (c *Client) ImportAlbum(body PostAlbumImportBody, options Options) (*PostAlbumImport, error)
- func (c *Client) ImportTrackToAlbum(id string, options Options) (*any, error)
- func (c *Client) MovePlaylistItem(id string, body PostPlaylistsItemMoveByIdBody, options Options) (*any, error)
- func (c *Client) Process(options Options) (*any, error)
- func (c *Client) RemoveTrack(id string, options Options) (*any, error)
- func (c *Client) SetToken(token string)
- func (c *Client) Signin(body PostAuthSigninBody, options Options) (*PostAuthSignin, error)
- func (c *Client) Signup(body PostAuthSignupBody, options Options) (*PostAuthSignup, error)
- func (c *Client) SystemExport(options Options) (*any, error)
- func (c *Client) SystemImport(options Options) (*any, error)
- type CoverArt
- type DeletePlaylistItemsByIdBody
- type GetAlbumById
- type GetAlbumTracksById
- type GetAlbums
- type GetArtistAlbumsById
- type GetArtistById
- type GetArtists
- type GetAuthMe
- type GetPlaylistById
- type GetPlaylists
- type GetSystemInfo
- type GetTags
- type GetTrackById
- type GetTracks
- type Options
- type PatchAlbumBody
- type PatchTrackBody
- type Playlist
- type PostAlbumImport
- type PostAlbumImportBody
- type PostAuthSignin
- type PostAuthSigninBody
- type PostAuthSignup
- type PostAuthSignupBody
- type PostPlaylist
- type PostPlaylistBody
- type PostPlaylistFilterBody
- type PostPlaylistItemsByIdBody
- type PostPlaylistsItemMoveByIdBody
- type RequestData
- type Tag
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Request ¶
func Request[D any](data RequestData) (*D, error)
Types ¶
type ApiError ¶
type ApiResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddItemsToPlaylist ¶
func (*Client) CreatePlaylist ¶
func (c *Client) CreatePlaylist(body PostPlaylistBody, options Options) (*PostPlaylist, error)
func (*Client) CreatePlaylistFromFilter ¶
func (c *Client) CreatePlaylistFromFilter(body PostPlaylistFilterBody, options Options) (*PostPlaylist, error)
func (*Client) DeletePlaylistItems ¶
func (*Client) GetAlbumById ¶
func (c *Client) GetAlbumById(id string, options Options) (*GetAlbumById, error)
func (*Client) GetAlbumTracks ¶
func (c *Client) GetAlbumTracks(id string, options Options) (*GetAlbumTracksById, error)
func (*Client) GetArtistAlbums ¶
func (c *Client) GetArtistAlbums(id string, options Options) (*GetArtistAlbumsById, error)
func (*Client) GetArtistById ¶
func (c *Client) GetArtistById(id string, options Options) (*GetArtistById, error)
func (*Client) GetArtists ¶
func (c *Client) GetArtists(options Options) (*GetArtists, error)
func (*Client) GetPlaylistById ¶
func (c *Client) GetPlaylistById(id string, options Options) (*GetPlaylistById, error)
func (*Client) GetPlaylists ¶
func (c *Client) GetPlaylists(options Options) (*GetPlaylists, error)
func (*Client) GetSystemInfo ¶
func (c *Client) GetSystemInfo(options Options) (*GetSystemInfo, error)
func (*Client) GetTrackById ¶
func (c *Client) GetTrackById(id string, options Options) (*GetTrackById, error)
func (*Client) ImportAlbum ¶
func (c *Client) ImportAlbum(body PostAlbumImportBody, options Options) (*PostAlbumImport, error)
func (*Client) ImportTrackToAlbum ¶
func (*Client) MovePlaylistItem ¶
func (*Client) Signin ¶
func (c *Client) Signin(body PostAuthSigninBody, options Options) (*PostAuthSignin, error)
func (*Client) Signup ¶
func (c *Client) Signup(body PostAuthSignupBody, options Options) (*PostAuthSignup, error)
type DeletePlaylistItemsByIdBody ¶
type DeletePlaylistItemsByIdBody struct {
TrackIds []string `json:"trackIds"`
}
type GetAlbumById ¶
type GetAlbumById Album
type GetAlbumTracksById ¶
type GetAlbumTracksById struct {
Tracks []Track `json:"tracks"`
}
type GetArtistAlbumsById ¶
type GetArtistAlbumsById struct {
Albums []Album `json:"albums"`
}
type GetArtistById ¶
type GetArtistById Artist
type GetArtists ¶
type GetArtists struct {
Artists []Artist `json:"artists"`
}
type GetPlaylistById ¶
type GetPlaylists ¶
type GetPlaylists struct {
Playlists []Playlist `json:"playlists"`
}
type GetSystemInfo ¶
type GetTrackById ¶
type GetTrackById Track
type PatchAlbumBody ¶
type PatchTrackBody ¶
type PostAlbumImport ¶
type PostAlbumImport struct {
AlbumId string `json:"albumId"`
}
type PostAlbumImportBody ¶
type PostAuthSignin ¶
type PostAuthSignin struct {
Token string `json:"token"`
}
type PostAuthSigninBody ¶
type PostAuthSignup ¶
type PostAuthSignupBody ¶
type PostPlaylist ¶
type PostPlaylist Playlist
type PostPlaylistBody ¶
type PostPlaylistBody struct {
Name string `json:"name"`
}
type PostPlaylistFilterBody ¶
type PostPlaylistItemsByIdBody ¶
type PostPlaylistItemsByIdBody struct {
Tracks []string `json:"tracks"`
}
type Track ¶
type Track struct {
Id string `json:"id"`
Name string `json:"name"`
AlbumId string `json:"albumId"`
ArtistId string `json:"artistId"`
Number *int `json:"number,omitempty"`
Duration *int `json:"duration,omitempty"`
Year *int `json:"year,omitempty"`
OriginalMediaUrl string `json:"originalMediaUrl"`
MobileMediaUrl string `json:"mobileMediaUrl"`
CoverArt CoverArt `json:"coverArt"`
AlbumName string `json:"albumName"`
ArtistName string `json:"artistName"`
Created int `json:"created"`
Updated int `json:"updated"`
Tags []string `json:"tags"`
Available bool `json:"available"`
}
Click to show internal directories.
Click to hide internal directories.