wasm

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 8 Imported by: 2

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 Runner

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

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

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