component

package
v0.0.0-...-5ae400b Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func NewContext

func NewContext(arguments map[string]any, outputs *sync.Map, index uint) *Context

func (*Context) GetArgument

func (c *Context) GetArgument(key string) any

func (*Context) Output

func (c *Context) Output(o component.Output)

type Signature

type Signature func(ctx component.Context) error

func Load

func Load(pluginPath string) (Signature, error)

type TriggerContext

type TriggerContext struct {
	OutputStream chan component.Output
	// contains filtered or unexported fields
}

func NewTriggerContext

func NewTriggerContext(arguments map[string]any) *TriggerContext

func (*TriggerContext) GetArgument

func (t *TriggerContext) GetArgument(key string) any

func (*TriggerContext) Output

func (t *TriggerContext) Output(o component.Output)

Jump to

Keyboard shortcuts

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