Documentation ¶
Index ¶
- Variables
- type AVSettings
- type Amp60
- func (a *Amp60) GetInfo(ctx context.Context) (interface{}, error)
- func (a *Amp60) GetMutes(ctx context.Context, blocks []string) (map[string]bool, error)
- func (a *Amp60) GetVolumes(ctx context.Context, blocks []string) (map[string]int, error)
- func (a *Amp60) SetMute(ctx context.Context, block string, muted bool) error
- func (a *Amp60) SetVolume(ctx context.Context, block string, volume int) error
- type AmpAudio
- type AmpStatus
- type AtlonaVideoSwitcher2x1
- func (vs *AtlonaVideoSwitcher2x1) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)
- func (vs *AtlonaVideoSwitcher2x1) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)
- func (vs *AtlonaVideoSwitcher2x1) GetInfo(ctx context.Context) (interface{}, error)
- func (vs *AtlonaVideoSwitcher2x1) SetAudioVideoInput(ctx context.Context, output, input string) error
- type AtlonaVideoSwitcher4x1
- func (vs *AtlonaVideoSwitcher4x1) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)
- func (vs *AtlonaVideoSwitcher4x1) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)
- func (vs *AtlonaVideoSwitcher4x1) GetInfo(ctx context.Context) (interface{}, error)
- func (vs *AtlonaVideoSwitcher4x1) SetAudioVideoInput(ctx context.Context, output, input string) error
- type AtlonaVideoSwitcher5x1
- func (vs *AtlonaVideoSwitcher5x1) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)
- func (vs *AtlonaVideoSwitcher5x1) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)
- func (vs *AtlonaVideoSwitcher5x1) GetInfo(ctx context.Context) (interface{}, error)
- func (vs *AtlonaVideoSwitcher5x1) GetMutes(ctx context.Context, blocks []string) (map[string]bool, error)
- func (vs *AtlonaVideoSwitcher5x1) GetVolumes(ctx context.Context, blocks []string) (map[string]int, error)
- func (vs *AtlonaVideoSwitcher5x1) SetAudioVideoInput(ctx context.Context, output, input string) error
- func (vs *AtlonaVideoSwitcher5x1) SetMute(ctx context.Context, output string, muted bool) error
- func (vs *AtlonaVideoSwitcher5x1) SetVolume(ctx context.Context, output string, level int) error
- type AtlonaVideoSwitcher6x2
- func (vs *AtlonaVideoSwitcher6x2) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)
- func (vs *AtlonaVideoSwitcher6x2) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)
- func (vs *AtlonaVideoSwitcher6x2) GetInfo(ctx context.Context) (interface{}, error)
- func (vs *AtlonaVideoSwitcher6x2) GetMutes(ctx context.Context, blocks []string) (map[string]bool, error)
- func (vs *AtlonaVideoSwitcher6x2) GetVolumes(ctx context.Context, blocks []string) (map[string]int, error)
- func (vs *AtlonaVideoSwitcher6x2) SetAudioVideoInput(ctx context.Context, output, input string) error
- func (vs *AtlonaVideoSwitcher6x2) SetMute(ctx context.Context, output string, muted bool) error
- func (vs *AtlonaVideoSwitcher6x2) SetVolume(ctx context.Context, output string, level int) error
- type Info
- type SystemSettings
Constants ¶
This section is empty.
Variables ¶
var Config zap.Config
Config is the logger config used for P
var Log *zap.SugaredLogger
P is a plain zap logger
Functions ¶
This section is empty.
Types ¶
type AVSettings ¶ added in v1.2.0
type AVSettings struct { HDMIInputAudioBreakout int `json:"ARC"` HDCPSettings []int `json:"HDCPSet"` AudioOutput int `json:"HDMIAud"` Toslink int `json:"Toslink"` AutoSwitch int `json:"asw"` Input int `json:"inp"` LoggedIn int `json:"login_ur"` }
AVSettings is the response from the switcher for the av settings page
type Amp60 ¶ added in v1.5.0
Amp60 represents an Atlona 60 watt amplifier
func (*Amp60) GetVolumes ¶ added in v1.5.4
GetVolumeByBlock gets the current volume
type AmpStatus ¶ added in v1.5.0
type AmpStatus struct { Model string `json:"101"` Firmware string `json:"102"` MACAddress string `json:"103"` SerialNumber string `json:"104"` OperatingTime string `json:"105"` }
AmpStatus represents the current amp status
type AtlonaVideoSwitcher2x1 ¶ added in v1.2.1
func (*AtlonaVideoSwitcher2x1) GetAudioVideoInputs ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher2x1) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)
GetAudioVideoInputs .
func (*AtlonaVideoSwitcher2x1) GetHardwareInfo ¶ added in v1.2.1
func (vs *AtlonaVideoSwitcher2x1) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)
GetHardwareInfo .
func (*AtlonaVideoSwitcher2x1) GetInfo ¶ added in v1.2.1
func (vs *AtlonaVideoSwitcher2x1) GetInfo(ctx context.Context) (interface{}, error)
GetInfo .
func (*AtlonaVideoSwitcher2x1) SetAudioVideoInput ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher2x1) SetAudioVideoInput(ctx context.Context, output, input string) error
SetAudioVideoInput .
type AtlonaVideoSwitcher4x1 ¶ added in v1.2.1
func (*AtlonaVideoSwitcher4x1) GetAudioVideoInputs ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher4x1) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)
GetAudioVideoInputs returns the current input
func (*AtlonaVideoSwitcher4x1) GetHardwareInfo ¶ added in v1.2.1
func (vs *AtlonaVideoSwitcher4x1) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)
GetHardwareInfo returns a hardware info struct
func (*AtlonaVideoSwitcher4x1) GetInfo ¶ added in v1.2.1
func (vs *AtlonaVideoSwitcher4x1) GetInfo(ctx context.Context) (interface{}, error)
GetInfo .
func (*AtlonaVideoSwitcher4x1) SetAudioVideoInput ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher4x1) SetAudioVideoInput(ctx context.Context, output, input string) error
SetAudioVideoInput changes the input on the given output to input
type AtlonaVideoSwitcher5x1 ¶ added in v1.2.1
type AtlonaVideoSwitcher5x1 struct { Username string Password string Address string Logger wspool.Logger // contains filtered or unexported fields }
func (*AtlonaVideoSwitcher5x1) GetAudioVideoInputs ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher5x1) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)
GetAudioVideoInputs .
func (*AtlonaVideoSwitcher5x1) GetHardwareInfo ¶ added in v1.2.1
func (vs *AtlonaVideoSwitcher5x1) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)
GetHardwareInfo .
func (*AtlonaVideoSwitcher5x1) GetInfo ¶ added in v1.2.1
func (vs *AtlonaVideoSwitcher5x1) GetInfo(ctx context.Context) (interface{}, error)
GetInfo .
func (*AtlonaVideoSwitcher5x1) GetMutes ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher5x1) GetMutes(ctx context.Context, blocks []string) (map[string]bool, error)
GetMutes .
func (*AtlonaVideoSwitcher5x1) GetVolumes ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher5x1) GetVolumes(ctx context.Context, blocks []string) (map[string]int, error)
GetVolumes .
func (*AtlonaVideoSwitcher5x1) SetAudioVideoInput ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher5x1) SetAudioVideoInput(ctx context.Context, output, input string) error
SetAudioVideoInput .
type AtlonaVideoSwitcher6x2 ¶ added in v1.2.1
func (*AtlonaVideoSwitcher6x2) GetAudioVideoInputs ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher6x2) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)
GetAudioVideoInputs .
func (*AtlonaVideoSwitcher6x2) GetHardwareInfo ¶ added in v1.2.1
func (vs *AtlonaVideoSwitcher6x2) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)
GetHardwareInfo .
func (*AtlonaVideoSwitcher6x2) GetInfo ¶ added in v1.2.1
func (vs *AtlonaVideoSwitcher6x2) GetInfo(ctx context.Context) (interface{}, error)
GetInfo .
func (*AtlonaVideoSwitcher6x2) GetMutes ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher6x2) GetMutes(ctx context.Context, blocks []string) (map[string]bool, error)
GetMutes .
func (*AtlonaVideoSwitcher6x2) GetVolumes ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher6x2) GetVolumes(ctx context.Context, blocks []string) (map[string]int, error)
GetVolumes .
func (*AtlonaVideoSwitcher6x2) SetAudioVideoInput ¶ added in v1.5.4
func (vs *AtlonaVideoSwitcher6x2) SetAudioVideoInput(ctx context.Context, output, input string) error
SetAudioVideoInput .