Documentation ¶
Index ¶
- type ContextResolver
- type Spclient
- func (c *Spclient) ContextResolve(uri string) (*connectpb.Context, error)
- func (c *Spclient) ContextResolveAutoplay(reqProto *playerpb.AutoplayContextRequest) (*connectpb.Context, error)
- func (c *Spclient) GetAccessToken(force bool) (string, error)
- func (c *Spclient) MetadataForEpisode(episode librespot.SpotifyId) (*metadatapb.Episode, error)
- func (c *Spclient) MetadataForTrack(track librespot.SpotifyId) (*metadatapb.Track, error)
- func (c *Spclient) PlaylistSignals(playlist librespot.SpotifyId, reqProto *playlist4pb.ListSignals, ...) (*playlist4pb.SelectedListContent, 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextResolver ¶
type ContextResolver struct {
// contains filtered or unexported fields
}
func NewContextResolver ¶
func NewContextResolver(sp *Spclient, ctx *connectpb.Context) (_ *ContextResolver, err error)
func (*ContextResolver) Metadata ¶
func (r *ContextResolver) Metadata() map[string]string
func (*ContextResolver) Page ¶
func (r *ContextResolver) Page(idx int) ([]*connectpb.ContextTrack, error)
func (*ContextResolver) Restrictions ¶
func (r *ContextResolver) Restrictions() *connectpb.Restrictions
func (*ContextResolver) Type ¶
func (r *ContextResolver) Type() librespot.SpotifyIdType
func (*ContextResolver) Uri ¶
func (r *ContextResolver) Uri() string
type Spclient ¶
type Spclient struct {
// contains filtered or unexported fields
}
func NewSpclient ¶
func NewSpclient(addr librespot.GetAddressFunc, accessToken librespot.GetLogin5TokenFunc, deviceId, clientToken string) (*Spclient, error)
func (*Spclient) ContextResolve ¶
func (*Spclient) ContextResolveAutoplay ¶
func (*Spclient) MetadataForEpisode ¶
func (*Spclient) MetadataForTrack ¶
func (*Spclient) PlaylistSignals ¶
func (c *Spclient) PlaylistSignals(playlist librespot.SpotifyId, reqProto *playlist4pb.ListSignals, lenses []string) (*playlist4pb.SelectedListContent, error)
func (*Spclient) PutConnectState ¶
func (c *Spclient) PutConnectState(spotConnId string, reqProto *connectpb.PutStateRequest) error
func (*Spclient) PutConnectStateInactive ¶
func (*Spclient) ResolveStorageInteractive ¶
Click to show internal directories.
Click to hide internal directories.