Documentation
¶
Index ¶
- func RegisterProcessor(processor ProcessorRegistration)
- type ArtNetPacketDecode
- type ArtNetPacketEncode
- type DbQuery
- type DebugLog
- type FilterChange
- type FilterExpr
- type FilterRate
- type FilterRegex
- type FloatParse
- type FloatRandom
- type FreeDCreate
- type FreeDDecode
- type FreeDEncode
- type HTTPGet
- type HTTPResponse
- type IntParse
- type IntRandom
- type IntScale
- type JsonDecode
- type JsonEncode
- type KVGet
- type KVSet
- type MIDIControlChange
- type MIDIControlChangeCreate
- type MIDIMessageDecode
- type MIDIMessageEncode
- type MIDIMessageUnpack
- type MIDINoteOff
- type MIDINoteOffCreate
- type MIDINoteOn
- type MIDINoteOnCreate
- type MIDIPitchBend
- type MIDIProgramChange
- type MIDIProgramChangeCreate
- type MessageCreate
- type ModuleOutput
- type OSCMessageDecode
- type OSCMessageEncode
- type OsExec
- type OsReadFile
- type OsWriteFile
- type ProcessorRegistration
- type ProcessorRegistry
- type PubSubPublish
- type RouteWrite
- type RouterInput
- type ScriptExpr
- type ScriptJS
- type StringCreate
- type StringDecode
- type StringEncode
- type StringSplit
- type TimeSleep
- type YamlDecode
- type YamlEncode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProcessor ¶
func RegisterProcessor(processor ProcessorRegistration)
Types ¶
type ArtNetPacketDecode ¶
type ArtNetPacketDecode struct {
// contains filtered or unexported fields
}
func (*ArtNetPacketDecode) Process ¶
func (apd *ArtNetPacketDecode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type ArtNetPacketEncode ¶
type ArtNetPacketEncode struct {
// contains filtered or unexported fields
}
func (*ArtNetPacketEncode) Process ¶
func (ape *ArtNetPacketEncode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type DbQuery ¶
type DbQuery struct {
ModuleId string
Query *template.Template
// contains filtered or unexported fields
}
func (*DbQuery) Process ¶
func (dq *DbQuery) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type DebugLog ¶
type DebugLog struct {
// contains filtered or unexported fields
}
func (*DebugLog) Process ¶
func (dl *DebugLog) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
TODO(jwetzell): maybe make a more useful logging processor
type FilterChange ¶
type FilterChange struct {
// contains filtered or unexported fields
}
func (*FilterChange) Process ¶
func (fc *FilterChange) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type FilterExpr ¶
NOTE(jwetzell): see language definition https://expr-lang.org/docs/language-definition
func (*FilterExpr) Process ¶
func (fe *FilterExpr) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type FilterRate ¶
type FilterRate struct {
// contains filtered or unexported fields
}
func (*FilterRate) Process ¶
func (fc *FilterRate) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type FilterRegex ¶
func (*FilterRegex) Process ¶
func (fr *FilterRegex) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type FloatParse ¶
type FloatParse struct {
BitSize int
// contains filtered or unexported fields
}
func (*FloatParse) Process ¶
func (fp *FloatParse) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type FloatRandom ¶
type FloatRandom struct {
BitSize int
Min float64
Max float64
// contains filtered or unexported fields
}
func (*FloatRandom) Process ¶
func (fr *FloatRandom) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type FreeDCreate ¶
type FreeDCreate struct {
IdTemplate *template.Template
PanTemplate *template.Template
TiltTemplate *template.Template
RollTemplate *template.Template
PosXTemplate *template.Template
PosYTemplate *template.Template
PosZTemplate *template.Template
ZoomTemplate *template.Template
FocusTemplate *template.Template
// contains filtered or unexported fields
}
func (*FreeDCreate) Process ¶
func (fc *FreeDCreate) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type FreeDDecode ¶
type FreeDDecode struct {
// contains filtered or unexported fields
}
func (*FreeDDecode) Process ¶
func (fd *FreeDDecode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type FreeDEncode ¶
type FreeDEncode struct {
// contains filtered or unexported fields
}
func (*FreeDEncode) Process ¶
func (fe *FreeDEncode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type HTTPGet ¶
type HTTPGet struct {
URL *template.Template
Headers map[string]string
// contains filtered or unexported fields
}
func (*HTTPGet) Process ¶
func (hrd *HTTPGet) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type HTTPResponse ¶
type HTTPResponse struct {
Status int
BodyTmpl *template.Template
// contains filtered or unexported fields
}
func (*HTTPResponse) Process ¶
func (hrc *HTTPResponse) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type IntParse ¶
func (*IntParse) Process ¶
func (ip *IntParse) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type IntRandom ¶
func (*IntRandom) Process ¶
func (ir *IntRandom) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type IntScale ¶
type IntScale struct {
OutMin int
OutMax int
InMin int
InMax int
// contains filtered or unexported fields
}
func (*IntScale) Process ¶
func (is *IntScale) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type JsonDecode ¶
type JsonDecode struct {
// contains filtered or unexported fields
}
func (*JsonDecode) Process ¶
func (jd *JsonDecode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type JsonEncode ¶
type JsonEncode struct {
// contains filtered or unexported fields
}
func (*JsonEncode) Process ¶
func (je *JsonEncode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type KVGet ¶
func (*KVGet) Process ¶
func (kvg *KVGet) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type KVSet ¶
func (*KVSet) Process ¶
func (kvs *KVSet) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type MIDIControlChange ¶
type MIDIControlChangeCreate ¶
type MIDIControlChangeCreate struct {
Channel *template.Template
Control *template.Template
Value *template.Template
// contains filtered or unexported fields
}
func (*MIDIControlChangeCreate) Process ¶
func (mccc *MIDIControlChangeCreate) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type MIDIMessageDecode ¶
type MIDIMessageDecode struct {
// contains filtered or unexported fields
}
func (*MIDIMessageDecode) Process ¶
func (mmd *MIDIMessageDecode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type MIDIMessageEncode ¶
type MIDIMessageEncode struct {
// contains filtered or unexported fields
}
func (*MIDIMessageEncode) Process ¶
func (mme *MIDIMessageEncode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type MIDIMessageUnpack ¶
type MIDIMessageUnpack struct {
// contains filtered or unexported fields
}
func (*MIDIMessageUnpack) Process ¶
func (mmu *MIDIMessageUnpack) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type MIDINoteOff ¶
type MIDINoteOffCreate ¶
type MIDINoteOffCreate struct {
Channel *template.Template
Note *template.Template
Velocity *template.Template
// contains filtered or unexported fields
}
func (*MIDINoteOffCreate) Process ¶
func (mnoc *MIDINoteOffCreate) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type MIDINoteOn ¶
type MIDINoteOnCreate ¶
type MIDINoteOnCreate struct {
Channel *template.Template
Note *template.Template
Velocity *template.Template
// contains filtered or unexported fields
}
func (*MIDINoteOnCreate) Process ¶
func (mnoc *MIDINoteOnCreate) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type MIDIPitchBend ¶
type MIDIProgramChange ¶
type MIDIProgramChangeCreate ¶
type MIDIProgramChangeCreate struct {
Channel *template.Template
Program *template.Template
// contains filtered or unexported fields
}
func (*MIDIProgramChangeCreate) Process ¶
func (mpcc *MIDIProgramChangeCreate) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type MessageCreate ¶
type MessageCreate struct {
Address *template.Template
Args []*template.Template
Types []rune
// contains filtered or unexported fields
}
func (*MessageCreate) Process ¶
func (omc *MessageCreate) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type ModuleOutput ¶
type ModuleOutput struct {
ModuleId string
// contains filtered or unexported fields
}
func (*ModuleOutput) Process ¶
func (mo *ModuleOutput) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type OSCMessageDecode ¶
type OSCMessageDecode struct {
// contains filtered or unexported fields
}
func (*OSCMessageDecode) Process ¶
func (omd *OSCMessageDecode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type OSCMessageEncode ¶
type OSCMessageEncode struct {
// contains filtered or unexported fields
}
func (*OSCMessageEncode) Process ¶
func (ome *OSCMessageEncode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type OsExec ¶
type OsExec struct {
CommandTemplate *template.Template
Args []*template.Template
// contains filtered or unexported fields
}
func (*OsExec) Process ¶
func (oe *OsExec) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type OsReadFile ¶
type OsReadFile struct {
PathTemplate *template.Template
// contains filtered or unexported fields
}
func (*OsReadFile) Process ¶
func (orf *OsReadFile) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type OsWriteFile ¶
type OsWriteFile struct {
PathTemplate *template.Template
// contains filtered or unexported fields
}
func (*OsWriteFile) Process ¶
func (owf *OsWriteFile) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type ProcessorRegistration ¶
type ProcessorRegistration struct {
Type string `json:"type"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
ParamsSchema *jsonschema.Schema `json:"paramsSchema,omitempty"`
New func(config.ProcessorConfig) (routing.Processor, error)
}
func GetProcessorRegistration ¶
func GetProcessorRegistration(processorType string) (ProcessorRegistration, bool)
func GetProcessorRegistrations ¶
func GetProcessorRegistrations() []ProcessorRegistration
type ProcessorRegistry ¶
type ProcessorRegistry map[string]ProcessorRegistration
type PubSubPublish ¶
type PubSubPublish struct {
ModuleId string
Topic *template.Template
// contains filtered or unexported fields
}
func (*PubSubPublish) Process ¶
func (psp *PubSubPublish) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type RouteWrite ¶
type RouteWrite struct {
// contains filtered or unexported fields
}
func (*RouteWrite) Process ¶
func (hrc *RouteWrite) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type RouterInput ¶
type RouterInput struct {
SourceId string
// contains filtered or unexported fields
}
func (*RouterInput) Process ¶
func (ri *RouterInput) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type ScriptExpr ¶
NOTE(jwetzell): see language definition https://expr-lang.org/docs/language-definition
func (*ScriptExpr) Process ¶
func (se *ScriptExpr) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type ScriptJS ¶
type ScriptJS struct {
Program string
// contains filtered or unexported fields
}
func (*ScriptJS) Process ¶
func (sj *ScriptJS) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type StringCreate ¶
func (*StringCreate) Process ¶
func (sc *StringCreate) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type StringDecode ¶
type StringDecode struct {
// contains filtered or unexported fields
}
func (*StringDecode) Process ¶
func (sd *StringDecode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type StringEncode ¶
type StringEncode struct {
// contains filtered or unexported fields
}
func (*StringEncode) Process ¶
func (se *StringEncode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type StringSplit ¶
type StringSplit struct {
Separator string
// contains filtered or unexported fields
}
func (*StringSplit) Process ¶
func (ss *StringSplit) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type TimeSleep ¶
func (*TimeSleep) Process ¶
func (ts *TimeSleep) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type YamlDecode ¶
type YamlDecode struct {
// contains filtered or unexported fields
}
func (*YamlDecode) Process ¶
func (jd *YamlDecode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
type YamlEncode ¶
type YamlEncode struct {
// contains filtered or unexported fields
}
func (*YamlEncode) Process ¶
func (je *YamlEncode) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)
Source Files
¶
- artnet-packet-decode.go
- artnet-packet-encode.go
- db-query.go
- debug-log.go
- filter-change.go
- filter-expr.go
- filter-rate.go
- filter-regex.go
- float-parse.go
- float-random.go
- free-d-create.go
- free-d-decode.go
- free-d-encode.go
- http-get.go
- http-response.go
- int-parse.go
- int-random.go
- int-scale.go
- json-decode.go
- json-encode.go
- kv-get.go
- kv-set.go
- midi-control_change-create.go
- midi-message-decode.go
- midi-message-encode.go
- midi-message-unpack.go
- midi-note_off-create.go
- midi-note_on-create.go
- midi-program_change-create.go
- module-output.go
- os-exec.go
- os-readfile.go
- os-writefile.go
- osc-message-create.go
- osc-message-decode.go
- osc-message-encode.go
- processor.go
- pubsub-publish.go
- route-write.go
- router-input.go
- script-expr.go
- script-js.go
- string-create.go
- string-decode.go
- string-encode.go
- string-split.go
- time-sleep.go
- yaml-decode.go
- yaml-encode.go