wasm

package
v0.3.1-beholder 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

type EmissionError struct {
	Wrapped error
}

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

func NewEmissionError

func NewEmissionError(err error) *EmissionError

func (*EmissionError) Error

func (e *EmissionError) Error() string

type Runner

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

func NewRunner

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

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

func (*Runtime) Fetch added in v0.3.0

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

func (*Runtime) Logger added in v0.3.0

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

type RuntimeConfig added in v0.3.0

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