service

package
v0.0.0-...-36a4cef Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MgmtService

type MgmtService interface {
	GetSpeakers() []*Speaker
	SetDisplayName(ID string, displayName string, updateBroadcast bool) error
	CreateZone(displayName string, speakerIDs []string) (string, error)
	AddSpeakersToZone(zoneID string, speakerIDs []string) error
	RemoveSpeakersFromZone(zoneID string, speakerIDs []string) error
	DeleteZone(zoneID string) error
	ChangeZoneName(zoneID string, newName string) error
	GetZones() []*Zone
	GetTrackForZone(zoneID string) (*Track, error)
	GetTrackForSpeaker(speakerID string) (*Track, error)
	SetMuteForSpeaker(speakerID string, isMuted bool) error
	GetIsMutedForSpeaker(speakerID string) (bool, error)
}

MgmtService interface for handling management capabilities

type Speaker

type Speaker struct {
	ID          string
	DisplayName string
}

Speaker speaker instance

type Track

type Track struct {
	Artist  string
	Album   string
	Title   string
	Artwork []byte
}

Track represents a track

type Zone

type Zone struct {
	ID          string
	DisplayName string
	Speakers    []*Speaker
}

Zone zone instance

Jump to

Keyboard shortcuts

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