Documentation ¶
Index ¶
- func ConvertTo62(raw []byte) string
- type Album
- type Artist
- type Client
- func (c *Client) GetAlbumInfo(url string) (*Album, error)
- func (c *Client) GetArtistInfo(url string) (*Artist, error)
- func (c *Client) GetPlaylist(url string) (*SpotigoPlaylist, error)
- func (c *Client) GetTrackInfo(url string) (*Track, error)
- func (c *Client) Search(query string) (*SpotigoSearch, error)
- type Disc
- type SpotigoAlbumInfo
- type SpotigoAlbums
- type SpotigoArtistInfo
- type SpotigoDate
- type SpotigoDisc
- type SpotigoEmbed
- type SpotigoGid
- type SpotigoPlaylist
- type SpotigoPlaylistAttributes
- type SpotigoPlaylistContents
- type SpotigoPlaylistItem
- type SpotigoPlaylistItemAttributes
- type SpotigoSearch
- type SpotigoSearchHit
- type SpotigoSearchHitAlbum
- type SpotigoSearchHitArtist
- type SpotigoSearchHits
- type SpotigoSearchResults
- type SpotigoTopTracks
- type SpotigoTrackInfo
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertTo62 ¶
Types ¶
type Client ¶
func (*Client) GetPlaylist ¶
func (c *Client) GetPlaylist(url string) (*SpotigoPlaylist, error)
type SpotigoAlbumInfo ¶
type SpotigoAlbumInfo struct { Gid string `json:"gid"` Name string `json:"name"` //Album name Artist []SpotigoArtistInfo `json:"artist"` //Artist list (main, ft.) Discs []SpotigoDisc `json:"disc"` //Virtual CD list Date SpotigoDate `json:"date"` //Album release date }
type SpotigoAlbums ¶
type SpotigoAlbums struct {
Albums []SpotigoGid `json:"album"`
}
type SpotigoArtistInfo ¶
type SpotigoArtistInfo struct { Gid string `json:"gid"` Name string `json:"name"` //Artist name TopTracks []SpotigoTopTracks `json:"top_track"` //Top tracks Albums []SpotigoAlbums `json:"album_group"` //Albums Singles []SpotigoAlbums `json:"single_group"` //Single tracks inside albums }
type SpotigoDate ¶
type SpotigoDisc ¶
type SpotigoDisc struct { Number int `json:"number"` //Virtual CD number Tracks []SpotigoGid `json:"track"` //Virtual CD track list }
type SpotigoEmbed ¶
type SpotigoEmbed struct {
ThumbnailURL string `json:"thumbnail_url"` //Thumbnail
}
type SpotigoGid ¶
func (*SpotigoGid) GetID ¶
func (gid *SpotigoGid) GetID() (string, error)
type SpotigoPlaylist ¶
type SpotigoPlaylist struct { Gid string `json:"gid"` Length int `json:"length"` Attributes SpotigoPlaylistAttributes `json:"attributes"` Contents SpotigoPlaylistContents `json:"contents"` //Additional data added by Spotigo UserID string `json:"-"` PlaylistID string `json:"-"` PlaylistURI string `json:"-"` ImageURL string `json:"-"` }
type SpotigoPlaylistContents ¶
type SpotigoPlaylistContents struct { Position int `json:"pos"` Truncated bool `json:"truncated"` Items []SpotigoPlaylistItem `json:"items"` }
type SpotigoPlaylistItem ¶
type SpotigoPlaylistItem struct { TrackURI string `json:"uri"` Attributes SpotigoPlaylistItemAttributes `json:"attributes"` }
type SpotigoSearch ¶
type SpotigoSearch struct {
Results SpotigoSearchResults `json:"results"` //Search results
}
type SpotigoSearchHit ¶
type SpotigoSearchHit struct { Album SpotigoSearchHitAlbum `json:"album"` Artists []SpotigoSearchHitArtist `json:"artists"` ImageURL string `json:"image"` Name string `json:"name"` URI string `json:"uri"` ID string `json:"-"` //Track ID, album ID, etc Duration int `json:"duration"` FollowersCount int `json:"followersCount"` Author string `json:"author"` }
func (*SpotigoSearchHit) GetID ¶
func (hit *SpotigoSearchHit) GetID() []string
func (*SpotigoSearchHit) GetType ¶
func (hit *SpotigoSearchHit) GetType() string
type SpotigoSearchHitAlbum ¶
type SpotigoSearchHitArtist ¶
type SpotigoSearchHits ¶
type SpotigoSearchHits struct {
Hits []SpotigoSearchHit `json:"hits"` //Hits
}
type SpotigoSearchResults ¶
type SpotigoSearchResults struct { Tracks SpotigoSearchHits `json:"tracks"` //Tracks Albums SpotigoSearchHits `json:"albums"` //Albums Artists SpotigoSearchHits `json:"artists"` //Artists Playlists SpotigoSearchHits `json:"playlists"` //Playlists }
type SpotigoTopTracks ¶
type SpotigoTopTracks struct {
Tracks []SpotigoGid `json:"track"`
}
type SpotigoTrackInfo ¶
type SpotigoTrackInfo struct { Gid string `json:"gid"` Name string `json:"name"` //Track name TrackNumber int `json:"number"` //Track number DiscNumber int `json:"disc_number"` //Disc number Duration int `json:"duration"` //Track duration in milliseconds Album SpotigoAlbumInfo `json:"album"` //Album Artist []SpotigoArtistInfo `json:"artist"` //Artist }
Click to show internal directories.
Click to hide internal directories.