rwasm

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

Runner represents a wasm-based runnable

func NewRunner

func NewRunner(filepath string) *Runner

NewRunner returns a new *Runner

func NewRunnerWithRef added in v0.9.0

func NewRunnerWithRef(ref *moduleref.WasmModuleRef) *Runner

func (*Runner) OnChange

func (w *Runner) OnChange(evt rt.ChangeEvent) error

OnChange runs when a worker starts using this Runnable

func (*Runner) Run

func (w *Runner) Run(job rt.Job, ctx *rt.Ctx) (interface{}, error)

Run runs a Runner

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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