Queue

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	Send func(action, body, targetTag string) (string, error)
	// Should be one of `Gonos.ContentTypes.*` // OR maybe just 0?
	QueueID string
	// Should always be `0`
	UpdateID int
}

func New

func New(send func(action, body, targetTag string) (string, error)) Queue

func (*Queue) AddMultipleURIs

func (s *Queue) AddMultipleURIs(containerURI string, containerMetaData string, desiredFirstTrackNumberEnqueued int, enqueueAsNext bool, numberOfURIs int, enqueuedURIsAndMetaData string) (addMultipleURIsResponse, error)

func (*Queue) AddURI

func (s *Queue) AddURI(enqueuedURI string, enqueuedURIMetaData string, desiredFirstTrackNumberEnqueued int, enqueueAsNext bool) (addURIResponse, error)

func (*Queue) AttachQueue

func (s *Queue) AttachQueue(queueOwnerID string) (attachQueueResponse, error)

func (*Queue) Backup

func (s *Queue) Backup() error

func (*Queue) Browse

func (s *Queue) Browse(startingIndex int, requestedCount int) (browseResponse, error)

func (*Queue) CreateQueue

func (s *Queue) CreateQueue(queueOwnerID string, queueOwnerContext string, queuePolicy string) (int, error)

func (*Queue) RemoveAllTracks

func (s *Queue) RemoveAllTracks() (int, error)

func (*Queue) RemoveTrackRange

func (s *Queue) RemoveTrackRange(startingIndex int, numberOfTracks int) (int, error)

func (*Queue) ReorderTracks

func (s *Queue) ReorderTracks(startingIndex int, numberOfTracks int, insertBefore int) (int, error)

func (*Queue) ReplaceAllTracks

func (s *Queue) ReplaceAllTracks(containerURI string, containerMetaData string, currentTrackIndex int, newCurrentTrackIndices string, numberOfURIs int, enqueuedURIsAndMetaData string) (replaceAllTracksResponse, error)

func (*Queue) SaveAsSonosPlaylist

func (s *Queue) SaveAsSonosPlaylist(title string, objectID string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL