wasm

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeInvalidResponse = 110
	CodeInvalidRequest  = 111
	CodeRunnerErr       = 112
	CodeHostErr         = 113
	CodeSuccess         = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EmissionError added in v0.1.1

type EmissionError struct {
	Wrapped error
}

EmissionError wraps all errors that occur during the emission process for the runtime to handle.

func NewEmissionError added in v0.1.1

func NewEmissionError(err error) *EmissionError

func (*EmissionError) Error added in v0.1.1

func (e *EmissionError) Error() string

type Runner

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

func NewRunner added in v0.1.1

func NewRunner() *Runner

func (*Runner) Config

func (r *Runner) Config() []byte

func (*Runner) Run

func (r *Runner) Run(factory *sdk.WorkflowSpecFactory)

type Runtime

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

func (*Runtime) Emitter added in v0.1.1

func (r *Runtime) Emitter() sdk.MessageEmitter

func (*Runtime) Fetch

func (r *Runtime) Fetch(req sdk.FetchRequest) (sdk.FetchResponse, error)

func (*Runtime) Logger

func (r *Runtime) Logger() logger.Logger

type RuntimeConfig

type RuntimeConfig struct {
	MaxFetchResponseSizeBytes int64
	RequestID                 *string
	Metadata                  *capabilities.RequestMetadata
}

Directories

Path Synopsis
NOTE: loosely based on: https://github.com/tetratelabs/wazero/blob/1353ca24fef0a57a3a342d75f20357a6e9d3be35/internal/wasip1/errno.go#L14
NOTE: loosely based on: https://github.com/tetratelabs/wazero/blob/1353ca24fef0a57a3a342d75f20357a6e9d3be35/internal/wasip1/errno.go#L14

Jump to

Keyboard shortcuts

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