Documentation ¶
Index ¶
- func ChangeVolume(ctx context.Context, r hub.Radio, delta int) error
- func DeleteRadio(h *hub.Hub, r hub.Radio) error
- func GetState(ctx context.Context, r hub.Radio) (*state.State, error)
- func ListRadios(h *hub.Hub) []model.Radio
- func ListStates(ctx context.Context, h *hub.Hub) []state.State
- func PlayPreset(ctx context.Context, r hub.Radio, preset int) error
- func RefreshSubscription(ctx context.Context, r hub.Radio) error
- func RefreshVolume(ctx context.Context, r hub.Radio) error
- func SetAudioSource(ctx context.Context, r hub.Radio, audioSource string) error
- func SetPower(ctx context.Context, r hub.Radio, power bool) error
- func SetVolume(ctx context.Context, r hub.Radio, volume int) error
- type DefaultStateHook
- type Discoverer
- type StateHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAudioSource ¶
Types ¶
type Discoverer ¶
type Discoverer struct {
// contains filtered or unexported fields
}
func NewDiscoverer ¶
func NewDiscoverer(hub *hub.Hub, controlPoint upnpsub.ControlPoint, stateHook StateHook) *Discoverer
func (*Discoverer) Background ¶
func (d *Discoverer) Background(ctx context.Context, doneC chan<- struct{})
func (*Discoverer) Discover ¶
func (d *Discoverer) Discover(force bool) error
func (*Discoverer) Discovering ¶
func (d *Discoverer) Discovering() bool
Click to show internal directories.
Click to hide internal directories.