Documentation
¶
Index ¶
- func DefaultHelperHUDConfigPath() (string, error)
- func DefaultLastRoomConfigPath() (string, error)
- func DefaultLayoutConfigPath() (string, error)
- func DefaultPlaylistCarouselConfigPath() (string, error)
- func DefaultThemeConfigPath() (string, error)
- func LoadCompactLayout(path string) (bool, error)
- func LoadHelperHUDEnabled(path string) (bool, error)
- func LoadLastRoomSelection(path string) (lastRoomSelection, error)
- func LoadPlaylistCarouselStore(path string) (playlistCarouselStore, error)
- func LoadThemeName(path string) (string, error)
- func SaveCompactLayout(path string, compact bool) error
- func SaveHelperHUDConfig(path string, cfg HelperHUDConfig) error
- func SaveHelperHUDEnabled(path string, enabled bool) error
- func SaveLastRoomSelection(path string, selection lastRoomSelection) error
- func SavePlaylistCarouselStore(path string, store playlistCarouselStore) error
- func SaveThemeName(path, theme string) error
- type Backend
- type Config
- type HelperHUDConfig
- type Model
- type QueueItem
- type QueuePage
- type Room
- type SearchResult
- type SonosBackend
- func (b *SonosBackend) BrowsePlaylist(ctx context.Context, room Room, serviceName string, result SearchResult, ...) ([]SearchResult, error)
- func (b *SonosBackend) ClearQueue(ctx context.Context, room Room) error
- func (b *SonosBackend) Discover(ctx context.Context) ([]Room, error)
- func (b *SonosBackend) MoveQueuePosition(ctx context.Context, room Room, fromPosition, toPosition int) error
- func (b *SonosBackend) PlayQueuePosition(ctx context.Context, room Room, position int) error
- func (b *SonosBackend) PlaySearchResult(ctx context.Context, room Room, serviceName string, result SearchResult) error
- func (b *SonosBackend) PlaylistShelf(ctx context.Context, room Room, serviceName, shelfID string, limit int) ([]SearchResult, error)
- func (b *SonosBackend) Queue(ctx context.Context, room Room, start, count int) (QueuePage, error)
- func (b *SonosBackend) RemoveQueuePosition(ctx context.Context, room Room, position int) error
- func (b *SonosBackend) ResolvePinnedPlaylist(ctx context.Context, room Room, serviceName, title string) (SearchResult, bool, error)
- func (b *SonosBackend) Scrub(ctx context.Context, room Room, position, duration string, deltaSeconds int) (string, error)
- func (b *SonosBackend) Search(ctx context.Context, room Room, serviceName, category, query string, limit int) ([]SearchResult, error)
- func (b *SonosBackend) SetVolume(ctx context.Context, room Room, volume int) error
- func (b *SonosBackend) Status(ctx context.Context, room Room) (Status, error)
- func (b *SonosBackend) ToggleCrossfade(ctx context.Context, room Room) (bool, error)
- func (b *SonosBackend) ToggleMute(ctx context.Context, room Room) error
- func (b *SonosBackend) ToggleRepeat(ctx context.Context, room Room) (string, error)
- func (b *SonosBackend) ToggleShuffle(ctx context.Context, room Room) (bool, error)
- func (b *SonosBackend) Transport(ctx context.Context, room Room, action string) error
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLayoutConfigPath ¶
func DefaultThemeConfigPath ¶
func LoadCompactLayout ¶
func LoadHelperHUDEnabled ¶
func LoadLastRoomSelection ¶
func LoadThemeName ¶
func SaveCompactLayout ¶
func SaveHelperHUDConfig ¶
func SaveHelperHUDConfig(path string, cfg HelperHUDConfig) error
func SaveHelperHUDEnabled ¶
func SaveLastRoomSelection ¶
func SaveThemeName ¶
Types ¶
type Backend ¶
type Backend interface {
Discover(context.Context) ([]Room, error)
Status(context.Context, Room) (Status, error)
Transport(context.Context, Room, string) error
SetVolume(context.Context, Room, int) error
ToggleMute(context.Context, Room) error
ToggleCrossfade(context.Context, Room) (bool, error)
ToggleShuffle(context.Context, Room) (bool, error)
ToggleRepeat(context.Context, Room) (string, error)
Scrub(context.Context, Room, string, string, int) (string, error)
Queue(context.Context, Room, int, int) (QueuePage, error)
PlayQueuePosition(context.Context, Room, int) error
RemoveQueuePosition(context.Context, Room, int) error
ClearQueue(context.Context, Room) error
MoveQueuePosition(context.Context, Room, int, int) error
Search(context.Context, Room, string, string, string, int) ([]SearchResult, error)
PlaylistShelf(context.Context, Room, string, string, int) ([]SearchResult, error)
ResolvePinnedPlaylist(context.Context, Room, string, string) (SearchResult, bool, error)
BrowsePlaylist(context.Context, Room, string, SearchResult, int) ([]SearchResult, error)
PlaySearchResult(context.Context, Room, string, SearchResult) error
}
type Config ¶
type Config struct {
Timeout time.Duration
SearchService string
SearchCategory string
SearchLimit int
MacHelperPath string
HelperHUDEnabled bool
HelperHUDPosition string
HelperHUDConfigPath string
Theme string
ThemeConfigPath string
Compact bool
LayoutConfigPath string
CarouselPath string
LastRoomConfigPath string
}
type HelperHUDConfig ¶
func DefaultHelperHUDConfig ¶
func DefaultHelperHUDConfig() HelperHUDConfig
func LoadHelperHUDConfig ¶
func LoadHelperHUDConfig(path string) (HelperHUDConfig, error)
type SearchResult ¶
func (SearchResult) Title ¶
func (r SearchResult) Title() string
type SonosBackend ¶
func NewSonosBackend ¶
func NewSonosBackend(timeout time.Duration) *SonosBackend
func (*SonosBackend) BrowsePlaylist ¶
func (b *SonosBackend) BrowsePlaylist(ctx context.Context, room Room, serviceName string, result SearchResult, limit int) ([]SearchResult, error)
func (*SonosBackend) ClearQueue ¶
func (b *SonosBackend) ClearQueue(ctx context.Context, room Room) error
func (*SonosBackend) Discover ¶
func (b *SonosBackend) Discover(ctx context.Context) ([]Room, error)
func (*SonosBackend) MoveQueuePosition ¶
func (*SonosBackend) PlayQueuePosition ¶
func (*SonosBackend) PlaySearchResult ¶
func (b *SonosBackend) PlaySearchResult(ctx context.Context, room Room, serviceName string, result SearchResult) error
func (*SonosBackend) PlaylistShelf ¶
func (b *SonosBackend) PlaylistShelf(ctx context.Context, room Room, serviceName, shelfID string, limit int) ([]SearchResult, error)
func (*SonosBackend) RemoveQueuePosition ¶
func (*SonosBackend) ResolvePinnedPlaylist ¶
func (b *SonosBackend) ResolvePinnedPlaylist(ctx context.Context, room Room, serviceName, title string) (SearchResult, bool, error)
func (*SonosBackend) Search ¶
func (b *SonosBackend) Search(ctx context.Context, room Room, serviceName, category, query string, limit int) ([]SearchResult, error)
func (*SonosBackend) ToggleCrossfade ¶
func (*SonosBackend) ToggleMute ¶
func (b *SonosBackend) ToggleMute(ctx context.Context, room Room) error
func (*SonosBackend) ToggleRepeat ¶
func (*SonosBackend) ToggleShuffle ¶
Click to show internal directories.
Click to hide internal directories.