Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { Play() Pause() Toggle() NextSong() PrevSong() PlaySong(song string) PlayPlaylist(playlist string) Token() oauth2.Token Ready() <-chan struct{} }
Controller contains valid spotify actions
func New ¶
func New(ctx context.Context, s *Session, health healthcheck.Handler) Controller
New creates a new spotify controller from a session
type Session ¶
type Session struct { Init <-chan struct{} // contains filtered or unexported fields }
Session contains a spotify session with oauth handler
func NewSession ¶
NewSession creates a new session
func (*Session) Handler ¶
func (s *Session) Handler() http.HandlerFunc
Handler returns http handler for oauth tokens
Click to show internal directories.
Click to hide internal directories.