rwasm

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseInternalLogger added in v0.11.0

func UseInternalLogger(l *vlog.Logger)

UseInternalLogger sets the logger to be used log internal wasm runtime messages

Types

type HostFn

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

HostFn describes a host function callable from within a Runnable module

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