Documentation ¶
Index ¶
- Constants
- type Async
- type AsyncContext
- type AsyncInMessage
- type AsyncOutMessage
- type Condition
- type Debug
- type DebugContext
- type DebugControl
- type DebugIn
- type DebugSettings
- type Delay
- type DelayContext
- type DelayInMessage
- type DelayOutMessage
- type Mixer
- type MixerInput
- type MixerInputContext
- type MixerOutput
- type MixerSettings
- type Modify
- type ModifyContext
- type ModifyInMessage
- type ModifyOutMessage
- type RouteName
- type Router
- type RouterContext
- type RouterInMessage
- type RouterOutMessage
- type RouterSettings
- type Scheduler
- type SchedulerContext
- type SchedulerInMessage
- type SchedulerOutMessage
- type SchedulerSettings
- type SchedulerTaskAck
- type Signal
- type SignalContext
- type SignalControl
- type SignalSettings
- type Task
- type Ticker
- type TickerContext
- type TickerControl
- type TickerSettings
- type TickerStatus
Constants ¶
View Source
const ( AsyncComponent = "common_async" AsyncInPort string = "in" AsyncOutPort string = "out" )
View Source
const ( DebugComponent = "debug" DebugInPort string = "in" )
View Source
const ( DelayComponent = "delay" DelayOutPort string = "out" DelayInPort string = "in" )
View Source
const ( ModifyComponent = "common_modify" ModifyInPort string = "in" ModifyOutPort string = "out" )
View Source
const ( RouterComponent = "router" RouterInPort = "input" RouterDefaultPort = "default" )
View Source
const ( SchedulerComponent = "scheduler" SchedulerOutPort string = "out" SchedulerInPort string = "in" SchedulerAckPort string = "ack" )
View Source
const ( SignalComponent = "signal" SignalOutPort string = "out" )
View Source
const ( TickerComponent = "ticker" TickerOutPort string = "out" TickerStatusPort string = "status" )
View Source
const (
MixerOutputPort string = "output"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Async ¶
type Async struct { }
func (*Async) GetInfo ¶
func (t *Async) GetInfo() module.ComponentInfo
type AsyncContext ¶
type AsyncContext any
type AsyncInMessage ¶
type AsyncInMessage struct {
Context AsyncContext `json:"context" configurable:"true" required:"true" title:"Context" description:"Arbitrary message to be modified"`
}
type AsyncOutMessage ¶
type AsyncOutMessage struct {
Context AsyncContext `json:"context"`
}
type Debug ¶
type Debug struct {
// contains filtered or unexported fields
}
func (*Debug) GetInfo ¶
func (t *Debug) GetInfo() module.ComponentInfo
type DebugContext ¶
type DebugContext any
type DebugControl ¶
type DebugControl struct {
Context DebugContext `json:"context" readonly:"true" required:"true" title:"Context"`
}
type DebugIn ¶
type DebugIn struct {
Context DebugContext `json:"context" configurable:"false" required:"true" title:"Context" title:"Context"`
}
type DebugSettings ¶
type DebugSettings struct {
Context DebugContext `json:"context" configurable:"true" required:"true" title:"Context" description:"Debug message"`
}
type Delay ¶
type Delay struct { }
func (*Delay) GetInfo ¶
func (t *Delay) GetInfo() module.ComponentInfo
type DelayContext ¶
type DelayContext any
type DelayInMessage ¶
type DelayInMessage struct { Context DelayContext `json:"context" configurable:"true" title:"Context" description:"Arbitrary message to be delayed"` Delay int `json:"delay" required:"true" title:"Delay (ms)"` }
type DelayOutMessage ¶
type DelayOutMessage struct { Delay int `json:"delay"` Context DelayContext `json:"context"` }
type Mixer ¶
type Mixer struct {
// contains filtered or unexported fields
}
func (*Mixer) GetInfo ¶
func (m *Mixer) GetInfo() module.ComponentInfo
type MixerInput ¶
type MixerInput struct { Context MixerInputContext `json:"context" configurable:"true" required:"true" title:"Context" description:"Arbitrary message"` // contains filtered or unexported fields }
func (MixerInput) Process ¶
func (m MixerInput) Process(s *jsonschema.Schema)
Process post-processing schema
type MixerInputContext ¶
type MixerInputContext any
type MixerOutput ¶
type MixerOutput struct {
// contains filtered or unexported fields
}
func (MixerOutput) Process ¶
func (m MixerOutput) Process(s *jsonschema.Schema)
type MixerSettings ¶
type MixerSettings struct {
Inputs []string `json:"inputs,omitempty" required:"true" title:"Inputs" minItems:"1" uniqueItems:"true"`
}
type Modify ¶
type Modify struct { }
func (*Modify) GetInfo ¶
func (t *Modify) GetInfo() module.ComponentInfo
type ModifyContext ¶
type ModifyContext any
type ModifyInMessage ¶
type ModifyInMessage struct {
Context ModifyContext `json:"context" configurable:"true" required:"true" title:"Context" description:"Arbitrary message to be modified"`
}
type ModifyOutMessage ¶
type ModifyOutMessage struct {
Context ModifyContext `json:"context"`
}
type RouteName ¶
RouteName special type which can carry its value and possible options for enum values
func (RouteName) JSONSchema ¶
func (*RouteName) MarshalJSON ¶
MarshalJSON treat like underlying Value string
func (*RouteName) UnmarshalJSON ¶
UnmarshalJSON treat like underlying Value string
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) GetInfo ¶
func (t *Router) GetInfo() module.ComponentInfo
type RouterContext ¶
type RouterContext any
type RouterInMessage ¶
type RouterInMessage struct { Context RouterContext `json:"context" configurable:"true" required:"true" title:"Context" description:"Arbitrary message to be routed"` Conditions []Condition `json:"conditions,omitempty" required:"true" title:"Conditions" minItems:"1" uniqueItems:"true"` }
type RouterOutMessage ¶
type RouterOutMessage struct { Route string `json:"route" required:"true" title:"Selected route" default:"A"` Context RouterContext `json:"context"` }
type RouterSettings ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func (*Scheduler) GetInfo ¶
func (s *Scheduler) GetInfo() module.ComponentInfo
type SchedulerContext ¶
type SchedulerContext any
type SchedulerInMessage ¶
type SchedulerInMessage struct { Context SchedulerContext `json:"context" title:"Context" configurable:"true" description:"Arbitrary message to be send further"` Task Task `json:"task" title:"Task" required:"true"` }
type SchedulerOutMessage ¶
type SchedulerOutMessage struct { Task Task `json:"task"` Context SchedulerContext `json:"context"` }
type SchedulerSettings ¶
type SchedulerSettings struct {
EnableAckPort bool `` /* 134-byte string literal not displayed */
}
type SchedulerTaskAck ¶
type SchedulerTaskAck struct { Task Task `json:"task"` Context SchedulerContext `json:"context"` ScheduledIn int64 `json:"scheduledIn"` }
type Signal ¶
type Signal struct {
// contains filtered or unexported fields
}
func (*Signal) GetInfo ¶
func (t *Signal) GetInfo() module.ComponentInfo
type SignalContext ¶
type SignalContext any
type SignalControl ¶
type SignalControl struct { Context SignalContext `json:"context" required:"true" title:"Context"` Send bool `json:"send" format:"button" title:"Send" required:"true"` }
type SignalSettings ¶
type SignalSettings struct { Context SignalContext `json:"context" required:"true" configurable:"true" title:"Context" description:"Arbitrary message to send"` Auto bool `json:"auto" title:"Auto send" required:"true" description:"Send signal automatically"` }
type Ticker ¶
type Ticker struct {
// contains filtered or unexported fields
}
func (*Ticker) GetInfo ¶
func (t *Ticker) GetInfo() module.ComponentInfo
type TickerContext ¶
type TickerContext any
type TickerControl ¶
type TickerControl struct {
Start bool `json:"start" required:"true" title:"Ticker state"`
}
type TickerSettings ¶
type TickerSettings struct { Context TickerContext `json:"context" configurable:"true" title:"Context" description:"Arbitrary message to be send each period of time"` Period int `json:"period" required:"true" title:"Periodicity (ms)" minimum:"10" default:"1000"` EnableStatusPort bool `json:"enableStatusPort" required:"true" title:"Enable status port" description:"Status port"` }
type TickerStatus ¶
Click to show internal directories.
Click to hide internal directories.