matrix

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matrix

type Matrix struct {

	// OutputSlotStart is the number that this switcher starts its output slot
	// numbers on when you run `dumpdmrouteinfo`. For example,
	// if the first output card is slot 33, this number should be 33.
	OutputSlotStart int

	// SetRouteOutputStart this is some ...randomly generated number that crestron uses
	// when you run setavroute. You can find the number by running `cards` - it should be output ID that
	// matches the card at OutputSlotStart (ie, running `setavroute <input> SetRouteOutputStart` should affect
	// the output at OutputSlotStart).
	SetRouteOutputStart int
	// contains filtered or unexported fields
}

func New

func New(addr string, opts ...Option) Matrix

func (*Matrix) AudioVideoInputs

func (m *Matrix) AudioVideoInputs(ctx context.Context) (map[string]string, error)

func (*Matrix) SetAudioVideoInput

func (m *Matrix) SetAudioVideoInput(ctx context.Context, output, input string) error

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithLogger

func WithLogger(l *zap.Logger) Option

Jump to

Keyboard shortcuts

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