Documentation
¶
Index ¶
- type Album
- type AlbumTracks
- type AlbumTracksResponse
- type Artist
- type Artists
- type ArtistsResponse
- type ArtistsTopTrackResponse
- type Audiobook
- type Author
- type CheckUserSavedTrackResponseMsg
- type Copyright
- type Cursors
- type DBusMessage
- type Episode
- type ExternalIDs
- type ExternalURLs
- type FeaturedPlaylistsResponse
- type Followers
- type Image
- type LikeUnlikeTrackMsg
- type LinkedFrom
- type MessageType
- type Narrator
- type NextPageURLType
- type PaginationInfo
- type Paging
- type Playlist
- type PlaylistItemsResponse
- type PlaylistOwner
- type PlaylistPage
- type PlaylistTrackObject
- type PlaylistTracks
- type Restriction
- type Restrictions
- type ResumePoint
- type SavedAlbum
- type SavedAlbumsResponse
- type SavedTrack
- type SearchResponse
- type SearchingMsg
- type Show
- type SpotifyImage
- type SpotifySearchResultMsg
- type SpotifyUser
- type SpotifyUserProfile
- type Track
- type UpdatePlayedSeconds
- type UpdatePlaylistMsg
- type UserFollowedArtistResponse
- type UserPlaylistsResponse
- type UserSavedTracks
- type UserTokenInfo
- type UserTopItemsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct {
AlbumType string `json:"album_type"`
TotalTracks int `json:"total_tracks"`
AvailableMarkets []string `json:"available_markets"`
ExternalURLs ExternalURLs `json:"external_urls"`
Href string `json:"href"`
ID string `json:"id"`
Images []Image `json:"images"`
Name string `json:"name"`
ReleaseDate string `json:"release_date"`
ReleaseDatePrecision string `json:"release_date_precision"`
Restrictions *Restriction `json:"restrictions,omitempty"`
Type string `json:"type"`
URI string `json:"uri"`
Artists []Artist `json:"artists"`
Tracks AlbumTracks `json:"tracks"`
Copyrights []Copyright `json:"copyrights"`
ExternalIDs ExternalIDs `json:"external_ids"`
Genres []string `json:"genres"`
Label string `json:"label"`
Popularity int `json:"popularity"`
}
type AlbumTracks ¶
type AlbumTracksResponse ¶ added in v0.4.0
type Artist ¶
type Artist struct {
ExternalURLs ExternalURLs `json:"external_urls"`
Href string `json:"href"`
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
URI string `json:"uri"`
Followers *Followers `json:"followers"`
Genres []*string `json:"genres"`
Images []*SpotifyImage `json:"images"`
Popularity *int `json:"popularity"`
IsItFromSearch bool `json:"-"`
}
func (Artist) FilterValue ¶
type ArtistsResponse ¶
type ArtistsResponse struct {
Artists []Artist `json:"artists"`
}
type ArtistsTopTrackResponse ¶ added in v0.4.0
type ArtistsTopTrackResponse struct {
Tracks []Track `json:"tracks"`
}
type Audiobook ¶
type Audiobook struct {
Authors []Author `json:"authors"`
AvailableMarkets []string `json:"available_markets"`
Copyrights []Copyright `json:"copyrights"`
Description string `json:"description"`
HTMLDescription string `json:"html_description"`
Edition string `json:"edition"`
Explicit bool `json:"explicit"`
ExternalURLs ExternalURLs `json:"external_urls"`
Href string `json:"href"`
ID string `json:"id"`
Images []Image `json:"images"`
Languages []string `json:"languages"`
MediaType string `json:"media_type"`
Name string `json:"name"`
Narrators []Narrator `json:"narrators"`
Publisher string `json:"publisher"`
Type string `json:"type"`
URI string `json:"uri"`
TotalChapters int `json:"total_chapters"`
}
type CheckUserSavedTrackResponseMsg ¶ added in v0.2.0
type DBusMessage ¶
type DBusMessage struct {
MessageType
}
type Episode ¶
type Episode struct {
AudioPreviewURL string `json:"audio_preview_url"`
Description string `json:"description"`
HTMLDescription string `json:"html_description"`
DurationMS int `json:"duration_ms"`
Explicit bool `json:"explicit"`
ExternalURLs ExternalURLs `json:"external_urls"`
Href string `json:"href"`
ID string `json:"id"`
Images []Image `json:"images"`
IsExternallyHosted bool `json:"is_externally_hosted"`
IsPlayable bool `json:"is_playable"`
Language string `json:"language"`
Languages []string `json:"languages"`
Name string `json:"name"`
ReleaseDate string `json:"release_date"`
ReleaseDatePrecision string `json:"release_date_precision"`
ResumePoint ResumePoint `json:"resume_point"`
Type string `json:"type"`
URI string `json:"uri"`
Restrictions Restrictions `json:"restrictions"`
}
type ExternalIDs ¶
type ExternalURLs ¶
type ExternalURLs struct {
Spotify string `json:"spotify"`
}
type FeaturedPlaylistsResponse ¶
type FeaturedPlaylistsResponse struct {
Message string `json:"message"`
Playlists PlaylistPage `json:"playlists"`
}
type LikeUnlikeTrackMsg ¶ added in v0.4.0
type LinkedFrom ¶
type LinkedFrom struct {
ExternalURLs ExternalURLs `json:"external_urls"`
Href string `json:"href"`
ID string `json:"id"`
Type string `json:"type"`
URI string `json:"uri"`
}
type MessageType ¶
type MessageType string
const ( NextTrack MessageType = "nextTrack" PreviousTrack MessageType = "previousTrack" PlayPause MessageType = "playPause" )
type NextPageURLType ¶ added in v0.6.0
type NextPageURLType string
const ( NextPageURLTypePlaylistTracks NextPageURLType = "playlistTracks" NextPageURLTypeUserSavedItems NextPageURLType = "userSavedItems" )
type PaginationInfo ¶ added in v0.6.0
type PaginationInfo struct {
Next string
NextPageURLType NextPageURLType
NextItemID string
}
type Playlist ¶
type Playlist struct {
Collaborative bool `json:"collaborative"`
Description string `json:"description"`
ExternalURLs ExternalURLs `json:"external_urls"`
Href string `json:"href"`
ID string `json:"id"`
Images []Image `json:"images"`
Name string `json:"name"`
Owner PlaylistOwner `json:"owner"`
Public bool `json:"public"`
SnapshotID string `json:"snapshot_id"`
Tracks PlaylistTracks `json:"tracks"`
Type string `json:"type"`
URI string `json:"uri"`
IsItFromSearch bool `json:"-"`
}
func (Playlist) FilterValue ¶
type PlaylistItemsResponse ¶
type PlaylistOwner ¶
type PlaylistPage ¶
type PlaylistTrackObject ¶
type PlaylistTrackObject struct {
AddedAt string `json:"added_at"`
AddedBy *SpotifyUser `json:"added_by"`
IsLocal bool `json:"is_local"`
Track Track `json:"track"`
IsItFromQueue bool `json:"isItFromQueue"`
IsItFromSearch bool `json:"-"`
}
func (PlaylistTrackObject) FilterValue ¶
func (playlist PlaylistTrackObject) FilterValue() string
func (PlaylistTrackObject) Title ¶
func (playlist PlaylistTrackObject) Title() string
type PlaylistTracks ¶
type Restriction ¶
type Restriction struct {
Reason string `json:"reason"`
}
type Restrictions ¶
type Restrictions struct {
Reason string `json:"reason"`
}
type ResumePoint ¶
type SavedAlbum ¶
type SavedAlbumsResponse ¶
type SavedTrack ¶ added in v0.2.0
type SearchResponse ¶
type SearchResponse struct {
Tracks Paging[Track] `json:"tracks"`
Artists Paging[Artist] `json:"artists"`
Albums Paging[Album] `json:"albums"`
Playlists Paging[Playlist] `json:"playlists"`
Shows Paging[Show] `json:"shows"`
Episodes Paging[Episode] `json:"episodes"`
Audiobooks Paging[Audiobook] `json:"audiobooks"`
}
type SearchingMsg ¶
type SearchingMsg struct{}
type Show ¶
type Show struct {
AvailableMarkets []string `json:"available_markets"`
Copyrights []Copyright `json:"copyrights"`
Description string `json:"description"`
HTMLDescription string `json:"html_description"`
Explicit bool `json:"explicit"`
ExternalURLs ExternalURLs `json:"external_urls"`
Href string `json:"href"`
ID string `json:"id"`
Images []Image `json:"images"`
IsExternallyHosted bool `json:"is_externally_hosted"`
Languages []string `json:"languages"`
MediaType string `json:"media_type"`
Name string `json:"name"`
Publisher string `json:"publisher"`
Type string `json:"type"`
URI string `json:"uri"`
TotalEpisodes int `json:"total_episodes"`
}
type SpotifyImage ¶
type SpotifySearchResultMsg ¶
type SpotifySearchResultMsg struct {
Result *SearchResponse
Err error
}
type SpotifyUser ¶
type SpotifyUserProfile ¶
type SpotifyUserProfile struct {
Country string `json:"country"`
DisplayName string `json:"display_name"`
Email string `json:"email"`
ExplicitContent struct {
FilterEnabled bool `json:"filter_enabled"`
FilterLocked bool `json:"filter_locked"`
} `json:"explicit_content"`
ExternalURLs struct {
Spotify string `json:"spotify"`
} `json:"external_urls"`
Followers struct {
Href string `json:"href"`
Total int `json:"total"`
} `json:"followers"`
Href string `json:"href"`
ID string `json:"id"`
Images []SpotifyImage `json:"images"`
Product string `json:"product"`
Type string `json:"type"`
URI string `json:"uri"`
}
type Track ¶
type Track struct {
Artists []Artist `json:"artists"`
Album Album `json:"album"`
AvailableMarkets []string `json:"available_markets"`
DiscNumber int `json:"disc_number"`
DurationMS int `json:"duration_ms"`
Explicit bool `json:"explicit"`
ExternalURLs ExternalURLs `json:"external_urls"`
Href string `json:"href"`
ID string `json:"id"`
IsPlayable bool `json:"is_playable"`
LinkedFrom *LinkedFrom `json:"linked_from,omitempty"`
Restrictions *Restriction `json:"restrictions,omitempty"`
Name string `json:"name"`
PreviewURL string `json:"preview_url"`
TrackNumber int `json:"track_number"`
Type string `json:"type"`
URI string `json:"uri"`
IsLocal bool `json:"is_local"`
}
type UpdatePlayedSeconds ¶
type UpdatePlayedSeconds struct {
TrackID string
}
type UpdatePlaylistMsg ¶
type UpdatePlaylistMsg struct {
Playlist []*PlaylistTrackObject
Err error
PaginationInfo *PaginationInfo
ShouldAppendQueue bool
ShouldAppend bool
}
type UserFollowedArtistResponse ¶
type UserFollowedArtistResponse struct {
Artists Artists `json:"artists"`
}
type UserPlaylistsResponse ¶
type UserPlaylistsResponse = PlaylistPage
type UserSavedTracks ¶ added in v0.2.0
type UserTokenInfo ¶
Click to show internal directories.
Click to hide internal directories.