Documentation
¶
Index ¶
- Constants
- type Component
- func (t *Component) GetInfo() module.ComponentInfo
- func (t *Component) Handle(ctx context.Context, handler module.Handler, port string, msg interface{}) module.Result
- func (t *Component) Instance() module.Component
- func (t *Component) OnSettings(_ context.Context, msg any) error
- func (t *Component) Ports() []module.Port
- type Condition
- type Context
- type InMessage
- type RouteName
- type Settings
Constants ¶
View Source
const ( ComponentName = "router" InPort = "input" DefaultPort = "default" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) GetInfo ¶
func (t *Component) GetInfo() module.ComponentInfo
func (*Component) Handle ¶
func (t *Component) Handle(ctx context.Context, handler module.Handler, port string, msg interface{}) module.Result
Handle routes business-port input to the matching output. The router has no other system port logic — settings/control/reconcile dispatch live in the capability methods.
func (*Component) OnSettings ¶ added in v0.2.0
OnSettings receives Settings from the SettingsPort.
type RouteName ¶
RouteName special type which can carry its value and possible options for enum values
func (*RouteName) JSONSchema ¶
func (r *RouteName) JSONSchema() (jsonschema.Schema, error)
func (*RouteName) MarshalJSON ¶
MarshalJSON treat like underlying Value string
func (*RouteName) UnmarshalJSON ¶
UnmarshalJSON treat like underlying Value string
Click to show internal directories.
Click to hide internal directories.