wasm

package
v0.0.0-...-d09eed2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

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

type Module

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

func NewModule

func NewModule(ctx context.Context, r wz.Runtime, code wz.CompiledModule) (*Module, error)

func (*Module) Close

func (m *Module) Close(ctx context.Context) error

func (*Module) Predicate

func (m *Module) Predicate(_ context.Context) (*Predicate, error)

func (*Module) Processor

func (m *Module) Processor(_ context.Context) (*Processor, error)

type ModuleOptionFn

type ModuleOptionFn func(*Module)

type Predicate

type Predicate struct {
	Function
}

type Processor

type Processor struct {
	Function
}

func (*Processor) Process

func (p *Processor) Process(ctx context.Context, message camel.Message) error

func (*Processor) Test

func (p *Processor) Test(ctx context.Context, message camel.Message) (bool, error)

type Runtime

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

func NewRuntime

func NewRuntime(ctx context.Context) (*Runtime, error)

func (*Runtime) Close

func (r *Runtime) Close(ctx context.Context) error

func (*Runtime) Export

func (r *Runtime) Export(ctx context.Context, name string, fn interface{}) error

func (*Runtime) Load

func (r *Runtime) Load(ctx context.Context, in io.ReadCloser) (*Module, error)

Directories

Path Synopsis
plugin

Jump to

Keyboard shortcuts

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