Versions in this module Expand all Collapse all v0 v0.0.20 Aug 21, 2024 v0.0.19 Aug 21, 2024 Changes in this version + type ContextResolver struct + func NewContextResolver(sp *Spclient, ctx *connectpb.Context) (_ *ContextResolver, err error) + func (r *ContextResolver) Metadata() map[string]string + func (r *ContextResolver) Page(idx int) ([]*connectpb.ContextTrack, error) + func (r *ContextResolver) Restrictions() *connectpb.Restrictions + func (r *ContextResolver) Type() librespot.SpotifyIdType + func (r *ContextResolver) Uri() string + type Spclient struct + func NewSpclient(addr librespot.GetAddressFunc, accessToken librespot.GetLogin5TokenFunc, ...) (*Spclient, error) + func (c *Spclient) ContextResolve(uri string) (*connectpb.Context, error) + func (c *Spclient) ContextResolveAutoplay(reqProto *playerpb.AutoplayContextRequest) (*connectpb.Context, error) + func (c *Spclient) MetadataForEpisode(episode librespot.SpotifyId) (*metadatapb.Episode, error) + func (c *Spclient) MetadataForTrack(track librespot.SpotifyId) (*metadatapb.Track, error) + func (c *Spclient) PutConnectState(spotConnId string, reqProto *connectpb.PutStateRequest) error + func (c *Spclient) PutConnectStateInactive(spotConnId string, notify bool) error + func (c *Spclient) ResolveStorageInteractive(fileId []byte, prefetch bool) (*storagepb.StorageResolveResponse, error) + func (c *Spclient) WebApiRequest(method string, path string, query url.Values, header http.Header, body []byte) (*http.Response, error)