Versions in this module Expand all Collapse all v0 v0.18.4 Dec 29, 2024 v0.18.3 Dec 29, 2024 v0.18.2 Dec 29, 2024 v0.18.1 Dec 26, 2024 v0.18.0 Dec 26, 2024 Changes in this version + type AddItemToPlaylistBody struct + TrackId string type Album + AllArtists []ArtistInfo + FeaturingArtists []ArtistInfo + Tags []string type ApiError + Extra E + Type string type ApiResponse + Success bool + type ApiToken struct + Id string + Name string type Artist + Created int + Tags []string + Updated int + type ArtistInfo struct + Id string + Name Name 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) CreateApiToken(body CreateApiTokenBody, options Options) (*CreateApiToken, error) + func (c *Client) CreateArtist(body CreateArtistBody, options Options) (*CreateArtist, error) + func (c *Client) CreateTaglist(body CreateTaglistBody, options Options) (*CreateTaglist, error) + func (c *Client) DeleteTaglist(id string, options Options) (*any, error) + func (c *Client) DeleteTrack(id string, options Options) (*any, error) + func (c *Client) GetAllApiTokens(options Options) (*GetAllApiTokens, 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) GetUserQuickPlaylistItemIds(options Options) (*GetUserQuickPlaylistItemIds, 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) SearchAlbums(options Options) (*GetAlbums, error) + func (c *Client) SearchArtists(options Options) (*GetArtists, error) + func (c *Client) SearchTracks(options Options) (*GetTracks, 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 CreateAlbumBody + ArtistId string + FeaturingArtists []string + OtherName string + Tags []string + Year int + type CreateApiToken struct + Token string + type CreateApiTokenBody struct + Name string + type CreateArtist struct + Id string + type CreateArtistBody struct + Name string + OtherName string + type CreatePlaylist Playlist + type CreatePlaylistBody struct + Name string + type CreateTaglist struct + Id string + type CreateTaglistBody struct + Filter string + Name string + type EditAlbumBody struct + ArtistId *string + ArtistName *string + FeaturingArtists *[]string + Name *string + OtherName *string + Tags *[]string + Year *int type EditArtistBody + Tags *[]string + type EditTrackBody struct + ArtistId *string + ArtistName *string + FeaturingArtists *[]string + Name *string + Number *int + OtherName *string + Tags *[]string + Year *int + type GetAlbumTracks struct + Tracks []Track + type GetAllApiTokens struct + Tokens []ApiToken + type GetMe struct + DisplayName string + Id string + QuickPlaylist *string + Role string + Username string + type GetTaglistById Taglist + type GetTaglistTracks struct + Page Page + Tracks []Track + type GetTaglists struct + Taglists []Taglist type GetTracks + Page Page + type GetUserQuickPlaylistItemIds struct + TrackIds []string + type Name struct + Default string + Other *string + type Page struct + Page int + PerPage int + TotalItems int + TotalPages int + type RemovePlaylistItemBody struct + TrackId string + type Signin struct + Token string + type SigninBody struct + Password string + Username string + type Signup struct + Id string + Username string + type SignupBody struct + Password string + PasswordConfirm string + Username string + type Taglist struct + Created int + Filter string + Id string + Name string + Updated int type Track + AllArtists []ArtistInfo + FeaturingArtists []ArtistInfo + type TrackId struct + TrackId string + type UpdateTaglistBody struct + Filter *string + Name *string + type UpdateUserSettingsBody struct + DisplayName *string + QuickPlaylist *string + type UploadTrackBody struct + AlbumId string + ArtistId string + FeaturingArtists []string + Name string + Number int + OtherName string + Tags []string + Year int v0.17.1 Nov 26, 2024 v0.17.0 Nov 26, 2024 Changes in this version + func RequestForm[D any](data RequestData, boundary string, body Reader) (*D, error) + func Request[D any](data RequestData) (*D, error) + func Sprintf(format string, a ...any) string + type Album struct + ArtistId string + ArtistName string + CoverArt Images + Created int + Id string + Name string + Updated int + Year *int + type ApiError struct + Code int + Errors E + Message string + func (err *ApiError[E]) Error() string + type ApiResponse struct + Data D + Error *ApiError[E] + Status string + type Artist struct + Id string + Name string + Picture Images + type ChangePasswordBody struct + CurrentPassword string + NewPassword string + NewPasswordConfirm string + type Client struct + func New(addr string) *Client + func (c *Client) AddItemsToPlaylist(id string, body PostPlaylistItemsByIdBody, 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) 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) EditArtist(id string, body EditArtistBody, 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) GetTrackById(id string, options Options) (*GetTrackById, error) + func (c *Client) GetTracks(options Options) (*GetTracks, 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) (*Export, error) + func (c *Client) UploadTracks(id string, body Reader, options Options) (*any, error) + type CreateAlbum struct + AlbumId string + type CreateAlbumBody struct + Artist string + Name string + type DeletePlaylistItemsByIdBody struct + TrackIds []string + type EditArtistBody struct + Name *string + type Export struct + Albums []ExportAlbum + Artists []ExportArtist + Tracks []ExportTrack + type ExportAlbum struct + ArtistId string + CoverArt string + Id string + Name string + Year int + type ExportArtist struct + Id string + Name string + Picture string + type ExportTrack struct + AlbumId string + ArtistId string + Created int + Duration int + ExportName string + Id string + MobileFilename string + Name string + Number int + OriginalFilename string + Tags []string + Year int + type GetAlbumById Album + type GetAlbumTracksById struct + Tracks []Track + type GetAlbums struct + Albums []Album + type GetArtistAlbumsById struct + Albums []Album + type GetArtistById Artist + type GetArtists struct + Artists []Artist + type GetAuthMe struct + Id string + IsOwner bool + Username string + type GetPlaylistById struct + Id string + Items []Track + Name string + type GetPlaylists struct + Playlists []Playlist + type GetSystemInfo struct + Version string + type GetTrackById Track + type GetTracks struct + Tracks []Track + type Images struct + Large string + Medium string + Original string + Small string + type Options struct + Boundary string + QueryParams map[string]string + type PatchAlbumBody struct + ArtistId *string + ArtistName *string + Name *string + Year *int + type PatchTrackBody struct + ArtistId *string + ArtistName *string + Name *string + Number *int + Tags *[]string + Year *int + type Playlist struct + Id string + Name string + type PostAuthSignin struct + Token string + type PostAuthSigninBody struct + Password string + Username string + type PostAuthSignup struct + Id string + Username string + type PostAuthSignupBody struct + Password string + PasswordConfirm string + Username string + type PostPlaylist Playlist + type PostPlaylistBody struct + Name string + type PostPlaylistFilterBody struct + Filter string + Name string + Sort string + type PostPlaylistItemsByIdBody struct + Tracks []string + type PostPlaylistsItemMoveByIdBody struct + ToIndex int + TrackId string + type Reader interface + Read func(p []byte) (n int, err error) + type RequestData struct + Body any + Method string + Token string + Url string + type Track struct + AlbumId string + AlbumName string + ArtistId string + ArtistName string + CoverArt Images + Created int + Duration *int + Id string + MobileMediaUrl string + Name string + Number *int + OriginalMediaUrl string + Tags []string + Updated int + Year *int + type UploadTracksBody struct + ForceExtractNumber bool