viacontrol

package
v0.0.0-...-94add3b Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateVIAFunc

type CreateVIAFunc func(context.Context, string) (ViaDevice, error)

type Server

type Server interface {
	Serve(lis net.Listener) error
}

func CreateVIAServer

func CreateVIAServer(create CreateVIAFunc) (Server, error)

type ViaDevice

type ViaDevice interface {
	GetVolume(ctx context.Context) (int, error)
	SetViaVolume(ctx context.Context, volume int) (string, error)
	Reboot(ctx context.Context) error
	Reset(ctx context.Context) error
	GetHardwareInfo(ctx context.Context) (kramer.HardwareInfo, error)
	GetInfo(ctx context.Context) (interface{}, error)
	GetRoomCode(ctx context.Context) (string, error)
	GetStatusOfUsers(ctx context.Context) (kramer.VIAUsers, error)
	SetAlert(ctx context.Context, AMessage string) error
}

type Volume

type Volume struct {
	Volume int `json:"volume"`
}

Jump to

Keyboard shortcuts

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