justaddpower

package module
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 Info

type Info struct {
	Hostname        string
	ModelName       string
	FirmwareVersion string
	BuildDate       string
	PowerStatus     string
	IPAddress       string
	MACAddress      string
}

type JustAddPowerChannelIntResult

type JustAddPowerChannelIntResult struct {
	Data int `json:"data"`
}

JustAddPowerChannelIntResult type for result

type JustAddPowerChannelResult

type JustAddPowerChannelResult struct {
	Data string `json:"data"`
}

JustAddPowerChannelResult type for result

type JustAddPowerDetailsResult

type JustAddPowerDetailsResult struct {
	Data struct {
		Firmware struct {
			Date   string `json:"date"`
			Update struct {
				Eta      bool   `json:"eta"`
				Message  string `json:"message"`
				Progress bool   `json:"progress"`
				Result   bool   `json:"result"`
				Status   bool   `json:"status"`
			} `json:"update"`
			Version string `json:"version"`
		} `json:"firmware"`
		Model   string `json:"model"`
		Network struct {
			Ipaddress string `json:"ipaddress"`
			Mac       string `json:"mac"`
			Mtu       int    `json:"mtu"`
			Netmask   string `json:"netmask"`
			Speed     string `json:"speed"`
		} `json:"network"`
		Status string `json:"status"`
		Time   string `json:"time"`
		Uptime string `json:"uptime"`
	} `json:"data"`
}

JustAddPowerDetailsResult type for the hardware details stuff

type JustAddPowerReciever

type JustAddPowerReciever struct {
	Address string
	Log     *zap.Logger
}

func (*JustAddPowerReciever) AudioVideoInputs added in v0.1.1

func (j *JustAddPowerReciever) AudioVideoInputs(ctx context.Context) (map[string]string, error)

AudioVideoInputs returns the current input

func (*JustAddPowerReciever) Healthy added in v0.1.2

func (j *JustAddPowerReciever) Healthy(ctx context.Context) error

func (*JustAddPowerReciever) Info added in v0.1.1

func (j *JustAddPowerReciever) Info(ctx context.Context) (interface{}, error)

Info returns an info struct

func (*JustAddPowerReciever) SetAudioVideoInput

func (j *JustAddPowerReciever) SetAudioVideoInput(ctx context.Context, output, input string) error

SwitchInput changes the input on the given output to input (Just add power transmitter - ipaddr) We don't need the output necessarily because the reciever is the output

Jump to

Keyboard shortcuts

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