Documentation ¶
Index ¶
- Constants
- func ContextTrackComparator(typ librespot.SpotifyIdType, target *connectpb.ContextTrack) func(*connectpb.ContextTrack) bool
- func ProvidedTrackComparator(typ librespot.SpotifyIdType, target *connectpb.ProvidedTrack) func(*connectpb.ContextTrack) bool
- type List
- func (tl *List) AddToQueue(track *connectpb.ContextTrack)
- func (tl *List) CurrentTrack() *connectpb.ProvidedTrack
- func (tl *List) GoNext() bool
- func (tl *List) GoPrev() bool
- func (tl *List) GoStart() bool
- func (tl *List) Index() *connectpb.ContextIndex
- func (tl *List) Metadata() map[string]string
- func (tl *List) NextTracks() []*connectpb.ProvidedTrack
- func (tl *List) PeekNext() *connectpb.ContextTrack
- func (tl *List) PrevTracks() []*connectpb.ProvidedTrack
- func (tl *List) Seek(f func(*connectpb.ContextTrack) bool) error
- func (tl *List) SetPlayingQueue(val bool)
- func (tl *List) SetQueue(_ []*connectpb.ContextTrack, next []*connectpb.ContextTrack)
- func (tl *List) ToggleShuffle(shuffle bool) error
- func (tl *List) TrySeek(f func(track *connectpb.ContextTrack) bool) error
Constants ¶
View Source
const MaxTracksInContext = 32
Variables ¶
This section is empty.
Functions ¶
func ContextTrackComparator ¶
func ContextTrackComparator(typ librespot.SpotifyIdType, target *connectpb.ContextTrack) func(*connectpb.ContextTrack) bool
func ProvidedTrackComparator ¶
func ProvidedTrackComparator(typ librespot.SpotifyIdType, target *connectpb.ProvidedTrack) func(*connectpb.ContextTrack) bool
Types ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
func NewTrackListFromContext ¶
func (*List) AddToQueue ¶
func (tl *List) AddToQueue(track *connectpb.ContextTrack)
func (*List) CurrentTrack ¶
func (tl *List) CurrentTrack() *connectpb.ProvidedTrack
func (*List) Index ¶
func (tl *List) Index() *connectpb.ContextIndex
func (*List) NextTracks ¶
func (tl *List) NextTracks() []*connectpb.ProvidedTrack
func (*List) PeekNext ¶
func (tl *List) PeekNext() *connectpb.ContextTrack
func (*List) PrevTracks ¶
func (tl *List) PrevTracks() []*connectpb.ProvidedTrack
func (*List) SetPlayingQueue ¶
func (*List) SetQueue ¶
func (tl *List) SetQueue(_ []*connectpb.ContextTrack, next []*connectpb.ContextTrack)
func (*List) ToggleShuffle ¶
Click to show internal directories.
Click to hide internal directories.