Documentation
¶
Index ¶
- type Album
- type AlbumService
- type Albums
- type Artist
- type ArtistService
- func (s *ArtistService) Get(ID string) (*Artist, error)
- func (s *ArtistService) GetAlbums(ID string) (*Albums, error)
- func (s *ArtistService) GetComments(ID string) (*Comments, error)
- func (s *ArtistService) GetFans(ID string) (*Fans, error)
- func (s *ArtistService) GetPlaylists(ID string) (*Playlists, error)
- func (s *ArtistService) GetRadio(ID string) (*Radio, error)
- func (s *ArtistService) GetRelated(ID string) (*Related, error)
- func (s *ArtistService) GetTopFive(ID string) (*Top, error)
- type Artists
- type ChartService
- type Client
- type Comment
- type CommentService
- type Comments
- type Contributor
- type EditorialService
- type Fans
- type Genre
- type GenreService
- type Genres
- type InfosService
- type OptionsService
- type Playlist
- type PlaylistService
- type Playlists
- type Radio
- type RadioService
- type Related
- type SearchService
- type Top
- type Track
- type TrackService
- type Tracks
- type User
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct {
ID int `json:"id,omitempty"`
Title string `json:"title,omitempty"`
UPC string `json:"upc,omitempty"`
Link string `json:"link,omitempty"`
Cover string `json:"cover,omitempty"`
CoverSmall string `json:"cover_small,omitempty"`
CoverMedium string `json:"cover_medium,omitempty"`
CoverBig string `json:"cover_big,omitempty"`
CoverXL string `json:"cover_xl,omitempty"`
GenreID int `json:"genre_id,omitempty"`
Genres *struct {
Data []Genre `json:"data,omitempty"`
} `json:"genres,omitempty"`
Label string `json:"label,omitempty"`
NbTracks int `json:"nb_tracks,omitempty"`
Duration int `json:"duration,omitempty"`
Fans int `json:"fans,omitempty"`
Rating int `json:"rating,omitempty"`
ReleaseDate string `json:"release_date,omitempty"`
RecordType string `json:"record_type,omitempty"`
Available bool `json:"available,omitempty"`
TrackList string `json:"tracklist,omitempty"`
ExplicitLyrics bool `json:"explicit_lyrics,omitempty"`
ExplicitContentLyrics int `json:"explicit_content_lyrics,omitempty"`
ExplicitContentCover int `json:"explicit_content_cover,omitempty"`
Contributors []Artist `json:"contributors,omitempty"`
Artist *Artist `json:"artist,omitempty"`
Type string `json:"type,omitempty"`
Tracks *struct {
Data []Track `json:"data,omitempty"`
} `json:"tracks,omitempty"`
}
type AlbumService ¶
type AlbumService service
func (*AlbumService) GetComments ¶
func (s *AlbumService) GetComments(ID string) (*Comments, error)
type Artist ¶
type Artist struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Link string `json:"link,omitempty"`
Picture string `json:"picture,omitempty"`
PictureSmall string `json:"picture_small,omitempty"`
PictureMedium string `json:"picture_medium,omitempty"`
PictureBig string `json:"picture_big,omitempty"`
PictureXl string `json:"picture_xl,omitempty"`
NbAlbum int `json:"nb_album,omitempty"`
NbFan int `json:"nb_fan,omitempty"`
Radio bool `json:"radio,omitempty"`
TrackList string `json:"tracklist,omitempty"`
Type string `json:"type,omitempty"`
}
type ArtistService ¶
type ArtistService service
func (*ArtistService) GetComments ¶
func (s *ArtistService) GetComments(ID string) (*Comments, error)
func (*ArtistService) GetPlaylists ¶
func (s *ArtistService) GetPlaylists(ID string) (*Playlists, error)
func (*ArtistService) GetRelated ¶
func (s *ArtistService) GetRelated(ID string) (*Related, error)
func (*ArtistService) GetTopFive ¶
func (s *ArtistService) GetTopFive(ID string) (*Top, error)
type ChartService ¶
type ChartService service
func (*ChartService) Get ¶
func (s *ChartService) Get()
func (*ChartService) GetAlbums ¶
func (s *ChartService) GetAlbums() (*Albums, error)
func (*ChartService) GetArtists ¶
func (s *ChartService) GetArtists() (*Artists, error)
func (*ChartService) GetPlaylists ¶
func (s *ChartService) GetPlaylists() (*Playlists, error)
func (*ChartService) GetTracks ¶
func (s *ChartService) GetTracks() (*Tracks, error)
type Client ¶
type Client struct {
Album *AlbumService
Artist *ArtistService
Chart *ChartService
Comment *CommentService
Editorial *EditorialService
Genre *GenreService
Infos *InfosService
Options *OptionsService
Playlist *PlaylistService
Radio *RadioService
Search *SearchService
Track *TrackService
User *UserService
// contains filtered or unexported fields
}
type CommentService ¶
type CommentService service
type Contributor ¶
type Contributor struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Link string `json:"link,omitempty"`
Picture string `json:"picture,omitempty"`
PictureSmall string `json:"picture_small,omitempty"`
PictureMedium string `json:"picture_medium,omitempty"`
PictureBig string `json:"picture_big,omitempty"`
PictureXL string `json:"picture_xl,omitempty"`
Radio bool `json:"radio,omitempty"`
TrackList string `json:"tracklist,omitempty"`
Type string `json:"type,omitempty"`
Role string `json:"role,omitempty"`
}
type EditorialService ¶
type EditorialService service
type Genre ¶
type Genre struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Picture string `json:"picture,omitempty"`
PictureBig string `json:"picture_big,omitempty"`
PictureMedium string `json:"picture_medium,omitempty"`
PictureSmall string `json:"picture_small,omitempty"`
PictureXL string `json:"picture_xl,omitempty"`
Type string `json:"type,omitempty"`
}
type GenreService ¶
type GenreService service
func (*GenreService) GetArtists ¶
func (s *GenreService) GetArtists(ID int) (*Artists, error)
func (*GenreService) List ¶
func (s *GenreService) List() (*Genres, error)
type InfosService ¶
type InfosService service
type OptionsService ¶
type OptionsService service
type Playlist ¶
type Playlist struct {
ID int `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Public bool `json:"public,omitempty"`
Link string `json:"link,omitempty"`
Picture string `json:"picture,omitempty"`
PictureSmall string `json:"picture_small,omitempty"`
PictureMedium string `json:"picture_medium,omitempty"`
PictureBig string `json:"picture_big,omitempty"`
PictureXL string `json:"picture_xl,omitempty"`
Checksum string `json:"checksum,omitempty"`
Tracklist string `json:"tracklist,omitempty"`
CreationDate string `json:"creation_date,omitempty"`
User *User `json:"user,omitempty"`
Type string `json:"type,omitempty"`
}
type PlaylistService ¶
type PlaylistService service
func (*PlaylistService) GetComments ¶
func (s *PlaylistService) GetComments(ID string) (*Comments, error)
type RadioService ¶
type RadioService service
type SearchService ¶
type SearchService service
type Track ¶
type Track struct {
ID int `json:"id,omitempty"`
Readable bool `json:"readable,omitempty"`
Title string `json:"title,omitempty"`
TitleShort string `json:"title_short,omitempty"`
TitleVersion string `json:"title_version,omitempty"`
ISRC string `json:"isrc,omitempty"`
Link string `json:"link,omitempty"`
Duration int `json:"duration,omitempty"`
Rank int `json:"rank,omitempty"`
ExplicitLyrics bool `json:"explicit_lyrics,omitempty"`
ExplicitContentLyrics int `json:"explicit_content_lyrics,omitempty"`
ExplicitContentCover int `json:"explicit_content_cover,omitempty"`
Preview string `json:"preview,omitempty"`
Contributors []Contributor `json:"contributors,omitempty"`
Artist *Artist `json:"artist,omitempty"`
Album *Album `json:"album,omitempty"`
Type string `json:"type,omitempty"`
}
type TrackService ¶
type TrackService service
type User ¶
type User struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Link string `json:"link,omitempty"`
Picture string `json:"picture,omitempty"`
PictureSmall string `json:"picture_small,omitempty"`
PictureMedium string `json:"picture_medium,omitempty"`
PictureBig string `json:"picture_big,omitempty"`
PictureXL string `json:"picture_xl,omitempty"`
Tracklist string `json:"tracklist,omitempty"`
Type string `json:"type,omitempty"`
}
type UserService ¶
type UserService service
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
example
|
|
|
get-album
command
|
|
|
get-album-comments
command
|
|
|
get-album-fans
command
|
|
|
get-album-tracks
command
|
|
|
get-artist
command
|
|
|
get-artist-albums
command
|
|
|
get-artist-comments
command
|
|
|
get-artist-fans
command
|
|
|
get-artist-playlists
command
|
|
|
get-artist-radio
command
|
|
|
get-artist-related
command
|
|
|
get-artist-top
command
|
|
|
get-genre
command
|
|
|
get-genre-artists
command
|
|
|
get-genres
command
|
|
|
get-playlist
command
|
|
|
get-playlist-comments
command
|
|
|
get-playlist-fans
command
|
|
|
get-playlist-tracks
command
|
|
|
get-top-albums
command
|
|
|
get-top-artists
command
|
|
|
get-top-playlists
command
|
|
|
get-top-tracks
command
|
Click to show internal directories.
Click to hide internal directories.