Documentation ¶
Index ¶
- func ConvertB62(id string) []byte
- func GetCurrentWords(lyrics []LyricsLines, currentMs int) string
- type LyricsLines
- type PlaybackState
- type SpotifyClient
- func (s *SpotifyClient) CloseWebsocket() error
- func (s *SpotifyClient) ConnectWebsocket() (chan *PlaybackState, error)
- func (s *SpotifyClient) GetLyrics(trackID string) (lyrics []LyricsLines, err error)
- func (s *SpotifyClient) GetMetadata(trackID string) (metadata *TrackMetadata, err error)
- func (s *SpotifyClient) PingHandler(conn *websocket.Conn)
- func (s *SpotifyClient) RefreshToken() (*Token, error)
- func (s *SpotifyClient) RegisterDevice() (err error)
- func (s *SpotifyClient) UpdateState() (err error)
- func (s *SpotifyClient) WSHandler(conn *websocket.Conn, ch chan *PlaybackState)
- type Token
- type TrackMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertB62 ¶
func GetCurrentWords ¶
func GetCurrentWords(lyrics []LyricsLines, currentMs int) string
Types ¶
type LyricsLines ¶
type PlaybackState ¶
type SpotifyClient ¶
type SpotifyClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(token *Token, cookie string) *SpotifyClient
func (*SpotifyClient) CloseWebsocket ¶
func (s *SpotifyClient) CloseWebsocket() error
func (*SpotifyClient) ConnectWebsocket ¶
func (s *SpotifyClient) ConnectWebsocket() (chan *PlaybackState, error)
func (*SpotifyClient) GetLyrics ¶
func (s *SpotifyClient) GetLyrics(trackID string) (lyrics []LyricsLines, err error)
func (*SpotifyClient) GetMetadata ¶
func (s *SpotifyClient) GetMetadata(trackID string) (metadata *TrackMetadata, err error)
func (*SpotifyClient) PingHandler ¶
func (s *SpotifyClient) PingHandler(conn *websocket.Conn)
func (*SpotifyClient) RefreshToken ¶
func (s *SpotifyClient) RefreshToken() (*Token, error)
func (*SpotifyClient) RegisterDevice ¶
func (s *SpotifyClient) RegisterDevice() (err error)
func (*SpotifyClient) UpdateState ¶
func (s *SpotifyClient) UpdateState() (err error)
func (*SpotifyClient) WSHandler ¶
func (s *SpotifyClient) WSHandler(conn *websocket.Conn, ch chan *PlaybackState)
type TrackMetadata ¶
Click to show internal directories.
Click to hide internal directories.