helpers

package
v0.0.0-...-0d52258 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnvUser     = os.Getenv("ATLONA_USERNAME")
	EnvPassword = os.Getenv("ATLONA_PASSWORD")
)

Functions

func GetInput

func GetInput(address string) (string, error)

Get a read out of the current configuration of the inputs for a decoder.

func OpenConnection

func OpenConnection(Address string, Comm []byte) (string, error)

func SwitchInput

func SwitchInput(Video_input string, Audio_input string, Address string) (string, error)

Types

type Config

type Config struct {
	Multicast `json:"multicast"`
	Name      string `json:"name"`
}

type Creds

type Creds struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type Multicast

type Multicast struct {
	Address string `json:"address"`
}

type SICommand

type SICommand struct {
	Creds
	SwitchConfigSet `json:"config_set"`
}

type SwitchConfigSet

type SwitchConfigSet struct {
	Name   string   `json:"name"`
	Config []Config `json:"config"`
}

Jump to

Keyboard shortcuts

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