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 RequestForm[D any](data RequestData, boundary string, body Reader) (*D, error)
- func Sprintf(format string, a ...any) string
- type AddItemToPlaylistBody
- type Album
- type ApiError
- type ApiResponse
- type ApiToken
- type Artist
- type ArtistInfo
- type ChangePasswordBody
- type Client
- func (c *Client) AddItemToPlaylist(id string, body AddItemToPlaylistBody, options Options) (*any, error)
- func (c *Client) AddToUserQuickPlaylist(body TrackId, options Options) (*any, error)
- func (c *Client) ChangeAlbumCover(id string, body Reader, options Options) (*any, error)
- func (c *Client) ChangeArtistPicture(id string, body Reader, options Options) (*any, error)
- func (c *Client) ChangePassword(body ChangePasswordBody, options Options) (*any, error)
- func (c *Client) CreateAlbum(body CreateAlbumBody, options Options) (*CreateAlbum, error)
- func (c *Client) CreateApiToken(body CreateApiTokenBody, options Options) (*CreateApiToken, error)
- func (c *Client) CreateArtist(body CreateArtistBody, options Options) (*CreateArtist, error)
- func (c *Client) CreatePlaylist(body CreatePlaylistBody, options Options) (*CreatePlaylist, error)
- func (c *Client) CreatePlaylistFromFilter(body PostPlaylistFilterBody, options Options) (*CreatePlaylist, error)
- func (c *Client) CreateTaglist(body CreateTaglistBody, options Options) (*CreateTaglist, error)
- func (c *Client) DeleteAlbum(id string, options Options) (*any, error)
- func (c *Client) DeleteTaglist(id string, options Options) (*any, error)
- func (c *Client) DeleteTrack(id string, options Options) (*any, error)
- func (c *Client) EditAlbum(id string, body EditAlbumBody, options Options) (*any, error)
- func (c *Client) EditArtist(id string, body EditArtistBody, options Options) (*any, error)
- func (c *Client) EditTrack(id string, body EditTrackBody, options Options) (*any, error)
- func (c *Client) GetAlbumById(id string, options Options) (*GetAlbumById, error)
- func (c *Client) GetAlbumTracks(id string, options Options) (*GetAlbumTracks, error)
- func (c *Client) GetAlbums(options Options) (*GetAlbums, error)
- func (c *Client) GetAllApiTokens(options Options) (*GetAllApiTokens, 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) (*GetMe, 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) GetTaglistById(id string, options Options) (*GetTaglistById, error)
- func (c *Client) GetTaglistTracks(id string, options Options) (*GetTaglistTracks, error)
- func (c *Client) GetTaglists(options Options) (*GetTaglists, error)
- func (c *Client) GetTrackById(id string, options Options) (*GetTrackById, error)
- func (c *Client) GetTracks(options Options) (*GetTracks, error)
- func (c *Client) GetUserQuickPlaylistItemIds(options Options) (*GetUserQuickPlaylistItemIds, error)
- func (c *Client) Process(options Options) (*any, error)
- func (c *Client) RefillSearch(options Options) (*any, error)
- func (c *Client) RemoveApiToken(id string, options Options) (*any, error)
- func (c *Client) RemoveItemFromUserQuickPlaylist(body TrackId, options Options) (*any, error)
- func (c *Client) RemovePlaylistItem(id string, body RemovePlaylistItemBody, options Options) (*any, error)
- func (c *Client) RemoveTrack(id string, options Options) (*any, error)
- func (c *Client) SearchAlbums(options Options) (*GetAlbums, error)
- func (c *Client) SearchArtists(options Options) (*GetArtists, error)
- func (c *Client) SearchTracks(options Options) (*GetTracks, error)
- func (c *Client) SetToken(token string)
- func (c *Client) Signin(body SigninBody, options Options) (*Signin, error)
- func (c *Client) Signup(body SignupBody, options Options) (*Signup, error)
- func (c *Client) SystemExport(options Options) (*Export, error)
- func (c *Client) UpdateTaglist(id string, body UpdateTaglistBody, options Options) (*any, error)
- func (c *Client) UpdateUserSettings(body UpdateUserSettingsBody, options Options) (*any, error)
- func (c *Client) UploadTrack(body Reader, options Options) (*any, error)
- type CreateAlbum
- type CreateAlbumBody
- type CreateApiToken
- type CreateApiTokenBody
- type CreateArtist
- type CreateArtistBody
- type CreatePlaylist
- type CreatePlaylistBody
- type CreateTaglist
- type CreateTaglistBody
- type EditAlbumBody
- type EditArtistBody
- type EditTrackBody
- type Export
- type ExportAlbum
- type ExportArtist
- type ExportTrack
- type GetAlbumById
- type GetAlbumTracks
- type GetAlbums
- type GetAllApiTokens
- type GetArtistAlbumsById
- type GetArtistById
- type GetArtists
- type GetMe
- type GetPlaylistById
- type GetPlaylists
- type GetSystemInfo
- type GetTaglistById
- type GetTaglistTracks
- type GetTaglists
- type GetTrackById
- type GetTracks
- type GetUserQuickPlaylistItemIds
- type Images
- type Name
- type Options
- type Page
- type Playlist
- type PostPlaylistFilterBody
- type Reader
- type RemovePlaylistItemBody
- type RequestData
- type Signin
- type SigninBody
- type Signup
- type SignupBody
- type Taglist
- type Track
- type TrackId
- type UpdateTaglistBody
- type UpdateUserSettingsBody
- type UploadTrackBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Request ¶
func Request[D any](data RequestData) (*D, error)
func RequestForm ¶
func RequestForm[D any](data RequestData, boundary string, body Reader) (*D, error)
Types ¶
type AddItemToPlaylistBody ¶ added in v0.18.0
type AddItemToPlaylistBody struct {
TrackId string `json:"trackId"`
}
type Album ¶
type Album struct { Id string `json:"id"` Name Name `json:"name"` Year *int `json:"year,omitempty"` CoverArt Images `json:"coverArt"` ArtistId string `json:"artistId"` ArtistName Name `json:"artistName"` Tags []string `json:"tags"` FeaturingArtists []ArtistInfo `json:"featuringArtists"` AllArtists []ArtistInfo `json:"allArtists"` Created int `json:"created"` Updated int `json:"updated"` }
type ApiError ¶
type ApiResponse ¶
type ArtistInfo ¶ added in v0.18.0
type ChangePasswordBody ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddItemToPlaylist ¶ added in v0.18.0
func (*Client) AddToUserQuickPlaylist ¶ added in v0.18.0
func (*Client) ChangeAlbumCover ¶
func (*Client) ChangeArtistPicture ¶
func (*Client) ChangePassword ¶
func (c *Client) ChangePassword(body ChangePasswordBody, options Options) (*any, error)
func (*Client) CreateAlbum ¶
func (c *Client) CreateAlbum(body CreateAlbumBody, options Options) (*CreateAlbum, error)
func (*Client) CreateApiToken ¶ added in v0.18.0
func (c *Client) CreateApiToken(body CreateApiTokenBody, options Options) (*CreateApiToken, error)
func (*Client) CreateArtist ¶ added in v0.18.0
func (c *Client) CreateArtist(body CreateArtistBody, options Options) (*CreateArtist, error)
func (*Client) CreatePlaylist ¶
func (c *Client) CreatePlaylist(body CreatePlaylistBody, options Options) (*CreatePlaylist, error)
func (*Client) CreatePlaylistFromFilter ¶
func (c *Client) CreatePlaylistFromFilter(body PostPlaylistFilterBody, options Options) (*CreatePlaylist, error)
func (*Client) CreateTaglist ¶ added in v0.18.0
func (c *Client) CreateTaglist(body CreateTaglistBody, options Options) (*CreateTaglist, error)
func (*Client) DeleteTaglist ¶ added in v0.18.0
func (*Client) DeleteTrack ¶ added in v0.18.0
func (*Client) EditArtist ¶
func (*Client) GetAlbumById ¶
func (c *Client) GetAlbumById(id string, options Options) (*GetAlbumById, error)
func (*Client) GetAlbumTracks ¶
func (c *Client) GetAlbumTracks(id string, options Options) (*GetAlbumTracks, error)
func (*Client) GetAllApiTokens ¶ added in v0.18.0
func (c *Client) GetAllApiTokens(options Options) (*GetAllApiTokens, 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) GetTaglistById ¶ added in v0.18.0
func (c *Client) GetTaglistById(id string, options Options) (*GetTaglistById, error)
func (*Client) GetTaglistTracks ¶ added in v0.18.0
func (c *Client) GetTaglistTracks(id string, options Options) (*GetTaglistTracks, error)
func (*Client) GetTaglists ¶ added in v0.18.0
func (c *Client) GetTaglists(options Options) (*GetTaglists, error)
func (*Client) GetTrackById ¶
func (c *Client) GetTrackById(id string, options Options) (*GetTrackById, error)
func (*Client) GetUserQuickPlaylistItemIds ¶ added in v0.18.0
func (c *Client) GetUserQuickPlaylistItemIds(options Options) (*GetUserQuickPlaylistItemIds, error)
func (*Client) RefillSearch ¶ added in v0.18.0
func (*Client) RemoveApiToken ¶ added in v0.18.0
func (*Client) RemoveItemFromUserQuickPlaylist ¶ added in v0.18.0
func (*Client) RemovePlaylistItem ¶ added in v0.18.0
func (*Client) SearchAlbums ¶ added in v0.18.0
func (*Client) SearchArtists ¶ added in v0.18.0
func (c *Client) SearchArtists(options Options) (*GetArtists, error)
func (*Client) SearchTracks ¶ added in v0.18.0
func (*Client) UpdateTaglist ¶ added in v0.18.0
func (*Client) UpdateUserSettings ¶ added in v0.18.0
func (c *Client) UpdateUserSettings(body UpdateUserSettingsBody, options Options) (*any, error)
type CreateAlbum ¶
type CreateAlbum struct {
AlbumId string `json:"albumId"`
}
type CreateAlbumBody ¶
type CreateApiToken ¶ added in v0.18.0
type CreateApiToken struct {
Token string `json:"token"`
}
type CreateApiTokenBody ¶ added in v0.18.0
type CreateApiTokenBody struct {
Name string `json:"name"`
}
type CreateArtist ¶ added in v0.18.0
type CreateArtist struct {
Id string `json:"id"`
}
type CreateArtistBody ¶ added in v0.18.0
type CreatePlaylist ¶ added in v0.18.0
type CreatePlaylist Playlist
type CreatePlaylistBody ¶ added in v0.18.0
type CreatePlaylistBody struct {
Name string `json:"name"`
}
type CreateTaglist ¶ added in v0.18.0
type CreateTaglist struct {
Id string `json:"id"`
}
type CreateTaglistBody ¶ added in v0.18.0
type EditAlbumBody ¶ added in v0.18.0
type EditAlbumBody struct { Name *string `json:"name,omitempty"` OtherName *string `json:"otherName,omitempty"` ArtistId *string `json:"artistId,omitempty"` ArtistName *string `json:"artistName,omitempty"` Year *int `json:"year,omitempty"` Tags *[]string `json:"tags,omitempty"` FeaturingArtists *[]string `json:"featuringArtists,omitempty"` }
type EditArtistBody ¶
type EditTrackBody ¶ added in v0.18.0
type EditTrackBody struct { Name *string `json:"name,omitempty"` OtherName *string `json:"otherName,omitempty"` ArtistId *string `json:"artistId,omitempty"` ArtistName *string `json:"artistName,omitempty"` Year *int `json:"year,omitempty"` Number *int `json:"number,omitempty"` Tags *[]string `json:"tags,omitempty"` FeaturingArtists *[]string `json:"featuringArtists,omitempty"` }
type Export ¶
type Export struct { Artists []ExportArtist `json:"artists"` Albums []ExportAlbum `json:"albums"` Tracks []ExportTrack `json:"tracks"` }
type ExportAlbum ¶
type ExportArtist ¶
type ExportTrack ¶
type ExportTrack struct { Id string `json:"id"` Name string `json:"name"` AlbumId string `json:"albumId"` ArtistId string `json:"artistId"` Duration int `json:"duration"` Number int `json:"number"` Year int `json:"year"` OriginalFilename string `json:"originalFilename"` MobileFilename string `json:"mobileFilename"` Created int `json:"created"` Tags []string `json:"tags"` }
type GetAlbumById ¶
type GetAlbumById Album
type GetAlbumTracks ¶ added in v0.18.0
type GetAlbumTracks struct {
Tracks []Track `json:"tracks"`
}
type GetAllApiTokens ¶ added in v0.18.0
type GetAllApiTokens struct {
Tokens []ApiToken `json:"tokens"`
}
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 GetSystemInfo struct {
Version string `json:"version"`
}
type GetTaglistById ¶ added in v0.18.0
type GetTaglistById Taglist
type GetTaglistTracks ¶ added in v0.18.0
type GetTaglists ¶ added in v0.18.0
type GetTaglists struct {
Taglists []Taglist `json:"taglists"`
}
type GetTrackById ¶
type GetTrackById Track
type GetUserQuickPlaylistItemIds ¶ added in v0.18.0
type GetUserQuickPlaylistItemIds struct {
TrackIds []string `json:"trackIds"`
}
type PostPlaylistFilterBody ¶
type RemovePlaylistItemBody ¶ added in v0.18.0
type RemovePlaylistItemBody struct {
TrackId string `json:"trackId"`
}
type SigninBody ¶ added in v0.18.0
type SignupBody ¶ added in v0.18.0
type Track ¶
type Track struct { Id string `json:"id"` Name Name `json:"name"` Duration int `json:"duration"` Number *int `json:"number,omitempty"` Year *int `json:"year,omitempty"` OriginalMediaUrl string `json:"originalMediaUrl"` MobileMediaUrl string `json:"mobileMediaUrl"` CoverArt Images `json:"coverArt"` AlbumId string `json:"albumId"` ArtistId string `json:"artistId"` AlbumName Name `json:"albumName"` ArtistName Name `json:"artistName"` Tags []string `json:"tags"` FeaturingArtists []ArtistInfo `json:"featuringArtists"` AllArtists []ArtistInfo `json:"allArtists"` Created int `json:"created"` Updated int `json:"updated"` }
type UpdateTaglistBody ¶ added in v0.18.0
type UpdateUserSettingsBody ¶ added in v0.18.0
type UploadTrackBody ¶ added in v0.18.0
Click to show internal directories.
Click to hide internal directories.