Documentation ¶
Overview ¶
Package sith is the dark side of Spotify Core.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventsWriter ¶
type EventsWriter struct {
// contains filtered or unexported fields
}
func NewEventsWriter ¶
func NewEventsWriter() EventsWriter
func (*EventsWriter) Close ¶
func (ew *EventsWriter) Close() error
func (*EventsWriter) SendEvent ¶
func (ew *EventsWriter) SendEvent(event string, data interface{}) error
func (*EventsWriter) SendLink ¶
func (ew *EventsWriter) SendLink(event string, link *spotify.Link) error
func (*EventsWriter) ServeHTTP ¶
func (ew *EventsWriter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Playlist ¶
type Playlist struct { Id string `json:"id"` URI string `json:"uri"` Name string `json:"name"` Description string `json:"description"` Collaborative bool `json:"collaborative"` Subscribers int `json:"subscribers"` Owner string `json:"owner"` HasImage bool `json:"has_image"` Items []*PlaylistTrack `json:"items"` }
type PlaylistResult ¶
type PlaylistResult struct {
Playlist *Playlist `json:"playlist"`
}
type PlaylistTrack ¶
type PlaylistsResult ¶
type PlaylistsResult struct {
Playlists []*Playlist `json:"playlists"`
}
type SearchResult ¶
type SimpleAlbum ¶
type SimpleArtist ¶
type Track ¶
type Track struct { URI string `json:"uri"` Name string `json:"name"` Duration float64 `json:"duration"` Popularity float64 `json:"popularity"` Album *SimpleAlbum `json:"album"` Artists []*SimpleArtist `json:"artists"` }
Click to show internal directories.
Click to hide internal directories.