processor

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 31 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

type FilterExpr struct {
	Program *vm.Program
	// contains filtered or unexported fields
}

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

type FilterRegex struct {
	Pattern *regexp.Regexp
	// contains filtered or unexported fields
}

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

type IntParse struct {
	Base    int
	BitSize int
	// contains filtered or unexported fields
}

func (*IntParse) Process

func (ip *IntParse) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)

type IntRandom

type IntRandom struct {
	Min int
	Max int
	// contains filtered or unexported fields
}

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

type KVGet struct {
	ModuleId string
	Key      string
	// contains filtered or unexported fields
}

func (*KVGet) Process

func (kvg *KVGet) Process(ctx context.Context, wrappedPayload routing.WrappedPayload, moduleManager routing.ModuleManager, router routing.Router) (routing.WrappedPayload, error)

type KVSet

type KVSet struct {
	ModuleId string
	Key      string
	// contains filtered or unexported fields
}

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 MIDIControlChange struct {
	Channel uint8
	Control uint8
	Value   uint8
}

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 MIDINoteOff struct {
	Channel  uint8
	Note     uint8
	Velocity uint8
}

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 MIDINoteOn struct {
	Channel  uint8
	Note     uint8
	Velocity uint8
}

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 MIDIPitchBend struct {
	Channel  uint8
	Relative int16
	Absolute uint16
}

type MIDIProgramChange

type MIDIProgramChange struct {
	Channel uint8
	Program uint8
}

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

type ScriptExpr struct {
	Program *vm.Program
	// contains filtered or unexported fields
}

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

type StringCreate struct {
	Template *template.Template
	// contains filtered or unexported fields
}

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

type TimeSleep struct {
	Duration time.Duration
	// contains filtered or unexported fields
}

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)

Jump to

Keyboard shortcuts

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