Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HardwareWriter ¶
type HardwareWriter interface { Name() string Start(ctx context.Context) error End(ctx context.Context) error Send(ctx context.Context, v Value) error }
HardwareWriter is an interface for things that can send the sequence signals outward to the physical devices rendering the show Examples might be OSC, DMX, MQTT etc..
type LogWriter ¶
type LogWriter struct { }
LogWriter simply issues a debug log for each value sent to it
func (*LogWriter) Name ¶
Name returns "logwriter", assuming there should never be more than one of these so...
type Multiplexer ¶
type Multiplexer struct {
// contains filtered or unexported fields
}
Multiplexer is a HardwareWriter that writes the same message asynchronously to each device the writes are not treated as reliable and errors are logged and discarded
func NewMultiplexer ¶
func NewMultiplexer(n string, w []HardwareWriter) *Multiplexer
NewMultiplexer creates and returns a Multiplexer with the given writes
func (*Multiplexer) End ¶
func (m *Multiplexer) End(ctx context.Context) error
End calls end on all of the other writers since it is done asynchronously, errors are logged and disregarded
func (*Multiplexer) Name ¶
func (m *Multiplexer) Name() string
Name returns the name this was given when it was created
type OSCWriter ¶
type OSCWriter struct {
// contains filtered or unexported fields
}
OSCWriter is a HardwareWriter that transmits the data as OSC messages