Documentation ¶
Index ¶
- Variables
- func ContextTrackToProvidedTrack(typ SpotifyIdType, track *connectpb.ContextTrack) *connectpb.ProvidedTrack
- func GetCpuFamily() spotifypb.CpuFamily
- func GetOS() spotifypb.Os
- func GetPlatform() spotifypb.Platform
- func GetPlatformSpecificData() *clienttokenpb.PlatformSpecificData
- func GidToBase62(id []byte) string
- func SpotifyLikeClientVersion() string
- func SystemInfoString() string
- func UserAgent() string
- func VersionNumberString() string
- func VersionString() string
- type AudioSource
- type Float32Reader
- type GetAddressFunc
- type GetLogin5TokenFunc
- type Media
- type PageResolver
- type SizedReadAtSeeker
- type SpotifyId
- type SpotifyIdType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMediaRestricted = errors.New("media is restricted") ErrNoSupportedFormats = errors.New("no supported formats") )
View Source
var ClientId = []byte{0x65, 0xb7, 0x8, 0x7, 0x3f, 0xc0, 0x48, 0xe, 0xa9, 0x2a, 0x7, 0x72, 0x33, 0xca, 0x87, 0xbd}
View Source
var ClientIdHex = hex.EncodeToString(ClientId)
View Source
var UriRegexp = regexp.MustCompile("^spotify:([a-z]+):([0-9a-zA-Z]{21,22})$")
Functions ¶
func ContextTrackToProvidedTrack ¶
func ContextTrackToProvidedTrack(typ SpotifyIdType, track *connectpb.ContextTrack) *connectpb.ProvidedTrack
func GetCpuFamily ¶
func GetPlatform ¶
func GetPlatformSpecificData ¶
func GetPlatformSpecificData() *clienttokenpb.PlatformSpecificData
func GidToBase62 ¶
func SpotifyLikeClientVersion ¶
func SpotifyLikeClientVersion() string
func SystemInfoString ¶
func SystemInfoString() string
func VersionNumberString ¶
func VersionNumberString() string
func VersionString ¶
func VersionString() string
Types ¶
type AudioSource ¶
type Float32Reader ¶
type GetAddressFunc ¶
type GetAddressFunc func() string
GetAddressFunc is a function that everytime it is called returns a different address for that type of endpoint.
type GetLogin5TokenFunc ¶
GetLogin5TokenFunc is a function that everytime it is called returns a valid login5 access token.
type Media ¶
type Media struct {
// contains filtered or unexported fields
}
func NewMediaFromEpisode ¶
func NewMediaFromEpisode(episode *metadatapb.Episode) *Media
func NewMediaFromTrack ¶
func NewMediaFromTrack(track *metadatapb.Track) *Media
func (Media) Episode ¶
func (te Media) Episode() *metadatapb.Episode
func (Media) Restriction ¶
func (te Media) Restriction() []*metadatapb.Restriction
func (Media) Track ¶
func (te Media) Track() *metadatapb.Track
type PageResolver ¶
type SizedReadAtSeeker ¶
type SizedReadAtSeeker interface { io.ReadSeeker io.ReaderAt Size() int64 }
type SpotifyId ¶
type SpotifyId struct {
// contains filtered or unexported fields
}
func SpotifyIdFromGid ¶
func SpotifyIdFromGid(typ SpotifyIdType, id []byte) SpotifyId
func SpotifyIdFromUri ¶
func (SpotifyId) Type ¶
func (id SpotifyId) Type() SpotifyIdType
type SpotifyIdType ¶
type SpotifyIdType string
const ( SpotifyIdTypeTrack SpotifyIdType = "track" SpotifyIdTypeEpisode SpotifyIdType = "episode" SpotifyIdTypePlaylist SpotifyIdType = "playlist" )
func InferSpotifyIdTypeFromContextUri ¶
func InferSpotifyIdTypeFromContextUri(uri string) SpotifyIdType
Source Files ¶
Click to show internal directories.
Click to hide internal directories.