Documentation
¶
Overview ¶
The console represents the full known state of the console, including all signals that are not currently exposed by the UI.
Package venue the Avid™ VENUE console as a Venue endpoint.
This package enables programmatic access to an Avid™ VENUE console via the VNC interface.
The code is broken into multiple parts:
- Endpoint (venue.go) -- standard API with the rest of the Venue program. This module contains all programming logic for driving the UI.
- UI (ui*.go) -- interaction with the VENUE interface via VNC. This module has the ability to interact with the console via VNC, but has no knowledge or understanding past enabling standardized interactions (e.g. pressing a button).
- Console (console.go) -- in-memory representation of the console. This module maintains the state of the system, but has no ability to influence the state of the system.
Index ¶
- func InputGain(ep router.Endpoint, pkt *router.Packet) error
- func InputGuess(ep router.Endpoint, pkt *router.Packet) error
- func InputMute(ep router.Endpoint, pkt *router.Packet) error
- func InputPad(ep router.Endpoint, pkt *router.Packet) error
- func InputPhantom(ep router.Endpoint, pkt *router.Packet) error
- func InputSolo(ep router.Endpoint, pkt *router.Packet) error
- func Inputs(v uint) func(*options) error
- func Noop(_ router.Endpoint, _ *router.Packet) error
- func OutputLevel(ep router.Endpoint, pkt *router.Packet) error
- func Ping(ep router.Endpoint, _ *router.Packet) error
- func Refresh(v time.Duration) func(*options) error
- func SelectInput(ep router.Endpoint, pkt *router.Packet) error
- func SelectOutput(ep router.Endpoint, pkt *router.Packet) error
- type Encoder
- func (w *Encoder) Adjust(wf *vnc.Workflow, val int) error
- func (w *Encoder) Decrement(wf *vnc.Workflow) error
- func (w *Encoder) Increment(wf *vnc.Workflow) error
- func (w *Encoder) Press(wf *vnc.Workflow) error
- func (w *Encoder) Read(wf *vnc.Workflow) (interface{}, error)
- func (w *Encoder) Update(wf *vnc.Workflow, val interface{}) error
- type Input
- type Meter
- type Output
- type Page
- type Pages
- type Signal
- type Signals
- type Switch
- type UI
- type Venue
- type Widget
- type Widgets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InputGuess ¶
InputGuess button push.
func InputPhantom ¶
InputPhantom toggles the state of the input phantom button.
func OutputLevel ¶
OutputLevel for the specified output. This handler operates on the currently selected input.
func SelectInput ¶
SelectInput for adjustment.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
Input represents an input signal.
type Meter ¶
type Meter struct {
// contains filtered or unexported fields
}
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
Output represents an input signal.
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page holds references to the UI elements on a VENUE page.
type Switch ¶
type Switch struct {
// contains filtered or unexported fields
}
Switch is a UIElement representing a switch.
func NewPushButton ¶
NewPushButton returns a new push-button switch. x and y refer to the top-left corner of the switch.
func NewToggle ¶
NewToggle returns a new toggle switch. x and y refer to the top-left corner of the switch.
func (*Switch) IsPushButton ¶
IsPushButton returns true if this is a push-button switch.
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
UI holds references to the Venue UI pages. TODO(kward:20170201) Can I get rid of the UI struct?
type Venue ¶
type Venue struct {
// contains filtered or unexported fields
}
Venue holds information representing the state of the VENUE backend.
func (*Venue) EndpointName ¶
EndpointName implements router.Endpoint.
func (*Venue) Initialize ¶
Initialize the in-memory state representation of a VENUE console.
func (*Venue) ListenAndHandle ¶
func (v *Venue) ListenAndHandle()
ListenAndHandle connections and incoming requests.
type Widget ¶
type Widget interface { // Press the widget (if possible). Press(wf *vnc.Workflow) error // Read the value of a widget. Read(wf *vnc.Workflow) (interface{}, error) // Update the value of a widget. Update(wf *vnc.Workflow, val interface{}) error }
The Widget interface provides functionality for interacting with VNC widgets.
Directories
¶
Path | Synopsis |
---|---|
Package encoders defines the supported types of encoders.
|
Package encoders defines the supported types of encoders. |
Package meters defines the supported types of meters.
|
Package meters defines the supported types of meters. |
Package pages defines the supported types of pages.
|
Package pages defines the supported types of pages. |
Packages switches defines different sizes, kinds, and states of switches.
|
Packages switches defines different sizes, kinds, and states of switches. |