Documentation ¶
Index ¶
- Constants
- Variables
- type Album
- type Artist
- type Library
- type LibraryAPI
- func (api *LibraryAPI) GetLibrary(ctx context.Context, login string) (library Library, err error)
- func (api *LibraryAPI) GetOwnerInfo(ctx context.Context, login string) (info OwnerInfo, err error)
- func (api *LibraryAPI) GetPlaylist(ctx context.Context, login string, playlist int) (playlistInfo PlaylistWithTracks, err error)
- func (api *LibraryAPI) SetUserAgent(ua string)
- type LibraryPlaylist
- type Owner
- type OwnerInfo
- type Playlist
- type PlaylistWithTracks
- type Track
- type Tracklist
Constants ¶
View Source
const MusicHandlersURL = "https://music.yandex.ru/handlers"
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Library ¶
type Library struct {
Playlists []LibraryPlaylist `json:"playlists"`
}
type LibraryAPI ¶
type LibraryAPI struct {
// contains filtered or unexported fields
}
func NewDefaultLibraryAPI ¶
func NewDefaultLibraryAPI() *LibraryAPI
func NewLibraryAPI ¶
func NewLibraryAPI(baseurl string) *LibraryAPI
func (*LibraryAPI) GetLibrary ¶
func (*LibraryAPI) GetOwnerInfo ¶
func (*LibraryAPI) GetPlaylist ¶
func (api *LibraryAPI) GetPlaylist(ctx context.Context, login string, playlist int) (playlistInfo PlaylistWithTracks, err error)
func (*LibraryAPI) SetUserAgent ¶
func (api *LibraryAPI) SetUserAgent(ua string)
type LibraryPlaylist ¶
type LibraryPlaylist struct {
Playlist
}
type PlaylistWithTracks ¶
type Tracklist ¶
type Tracklist struct {
Playlist PlaylistWithTracks `json:"playlist"`
}
Click to show internal directories.
Click to hide internal directories.