Documentation
¶
Index ¶
- Constants
- type Component
- func (t *Component) GetInfo() module.ComponentInfo
- func (t *Component) Handle(ctx context.Context, _ 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 Context
- type Control
- type InMessage
- type Settings
Constants ¶
View Source
const ( ComponentName = "debug" InPort string = "in" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
func (*Component) GetInfo ¶
func (t *Component) GetInfo() module.ComponentInfo
func (*Component) Handle ¶
func (t *Component) Handle(ctx context.Context, _ module.Handler, port string, msg interface{}) module.Result
Handle dispatches the InPort. Updates the displayed Context and triggers a reconcile so the Control port re-renders.
func (*Component) OnSettings ¶ added in v0.2.0
OnSettings receives Settings from the SettingsPort.
type Control ¶
type Control struct {
Context Context `json:"context" readonly:"true" required:"true" title:"Context"`
}
Click to show internal directories.
Click to hide internal directories.