debug

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName        = "debug"
	InPort        string = "in"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	module.Base
	// contains filtered or unexported fields
}

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) Instance

func (t *Component) Instance() module.Component

func (*Component) OnSettings added in v0.2.0

func (t *Component) OnSettings(_ context.Context, msg any) error

OnSettings receives Settings from the SettingsPort.

func (*Component) Ports

func (t *Component) Ports() []module.Port

type Context

type Context any

type Control

type Control struct {
	Context Context `json:"context" readonly:"true" required:"true" title:"Context"`
}

type InMessage

type InMessage struct {
	Context Context `json:"context" configurable:"false" required:"true" title:"Context" title:"Context"`
}

type Settings

type Settings struct {
	Context Context `json:"context" configurable:"true" required:"true" title:"Context" description:"Component message"`
}

Jump to

Keyboard shortcuts

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