via

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HardwareInfo

type HardwareInfo struct {
	Hostname              string           `json:"hostname,omitempty"`
	ModelName             string           `json:"model_name,omitempty"`
	SerialNumber          string           `json:"serial_number,omitempty"`
	BuildDate             string           `json:"build_date,omitempty"`
	FirmwareVersion       string           `json:"firmware_version,omitempty"`
	ProtocolVersion       string           `json:"protocol_version,omitempty"`
	NetworkInfo           NetworkInfo      `json:"network_information,omitempty"`
	FilterStatus          string           `json:"filter_status,omitempty"`
	WarningStatus         []string         `json:"warning_status,omitempty"`
	ErrorStatus           []string         `json:"error_status,omitempty"`
	PowerStatus           string           `json:"power_status,omitempty"`
	PowerSavingModeStatus string           `json:"power_saving_mode_status,omitempty"`
	TimerInfo             []map[string]int `json:"timer_info,omitempty"`
	Temperature           string           `json:"temperature,omitempty"`
}

HardwareInfo contains the common information for device hardware information

type NetworkInfo

type NetworkInfo struct {
	IPAddress  string   `json:"ip_address,omitempty"`
	MACAddress string   `json:"mac_address,omitempty"`
	Gateway    string   `json:"gateway,omitempty"`
	DNS        []string `json:"dns,omitempty"`
}

NetworkInfo contains the network information for the device

type Via

type Via struct {
	Address  string
	Username string
	Password string
	Log      *zap.Logger
}

VIA Struct that defines general parameters needed for any VIA

func (*Via) GetHardwareInfo

func (v *Via) GetHardwareInfo(ctx context.Context) (HardwareInfo, error)

func (*Via) Healthy added in v0.1.2

func (v *Via) Healthy(ctx context.Context) error

func (*Via) Info

func (v *Via) Info(ctx context.Context) (interface{}, error)

GetInfo: needed by the DSP drivers implementation. Will get hardware information

func (*Via) SetVolume

func (v *Via) SetVolume(ctx context.Context, block string, volume int) error

SetVolume: Connect and set the volume on the VIA

func (*Via) Volumes

func (v *Via) Volumes(ctx context.Context, block []string) (map[string]int, error)

Volumes: opening a connection with the VIAs and then return the volume for the device

Jump to

Keyboard shortcuts

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