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{}) any
- func (t *Component) Instance() module.Component
- func (t *Component) OnSettings(_ context.Context, msg any) error
- func (t *Component) Ports() []module.Port
- type Context
- type InMessage
- type Settings
Constants ¶
View Source
const ( ComponentName = "async" InPort string = "in" OutPort string = "out" )
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{}) any
Handle dispatches the InPort. System ports go through the capability interfaces above.
func (*Component) OnSettings ¶ added in v0.2.0
OnSettings receives Settings from the SettingsPort and resizes the concurrency semaphore.
Click to show internal directories.
Click to hide internal directories.