sith

package
v0.0.0-...-0af22c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2014 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package sith is the dark side of Spotify Core.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Run is the main entry point for this program.

Types

type Album

type Album struct {
	Id       string        `json:"id"`
	URI      string        `json:"uri"`
	Name     string        `json:"name"`
	Year     int           `json:"year"`
	HasImage bool          `json:"has_image"`
	Artist   *SimpleArtist `json:"artist"`
}

type Artist

type Artist struct {
	Id       string `json:"id"`
	URI      string `json:"uri"`
	Name     string `json:"name"`
	HasImage bool   `json:"has_image"`
}

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 (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 PlaylistTrack struct {
	UID   string `json:"uid"`
	User  string `json:"user"`
	Time  string `json:"time"`
	Track *Track `json:"track"`
}

type PlaylistsResult

type PlaylistsResult struct {
	Playlists []*Playlist `json:"playlists"`
}

type SearchResult

type SearchResult struct {
	URI        string `json:"uri"`
	DidYouMean string `json:"didyoumean"`

	Artists []*Artist `json:"artists"`
	Albums  []*Album  `json:"albums"`
	Tracks  []*Track  `json:"tracks"`
}

type SimpleAlbum

type SimpleAlbum struct {
	Id       string `json:"id"`
	URI      string `json:"uri"`
	Name     string `json:"name"`
	HasImage bool   `json:"has_image"`
}

type SimpleArtist

type SimpleArtist struct {
	URI  string `json:"uri"`
	Name string `json:"name"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL