delay

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName        = "delay"
	OutPort       string = "out"
	InPort        string = "in"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
}

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{}) error

func (*Component) Instance

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

func (*Component) Ports

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

type Context

type Context any

type Request

type Request struct {
	Context Context `json:"context" configurable:"true" title:"Context" description:"Arbitrary message to be delayed"`
	Delay   int     `json:"delay" required:"true" title:"Component (ms)"`
}

Jump to

Keyboard shortcuts

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