wasm

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Instances = map[string]*Instance{}

Instances the wams instance

Functions

This section is empty.

Types

type Instance

type Instance struct {
	File string
	// contains filtered or unexported fields
}

Instance the wamr instance

func Load

func Load(file string, id string) (*Instance, error)

Load the warm instance

func NewInstance

func NewInstance(file string, wamrInstance *wamr.Instance) *Instance

NewInstance create a new instance

func Select

func Select(id string) (*Instance, error)

Select a warm intance

func (*Instance) Call

func (instance *Instance) Call(method string, res interface{}, args ...interface{}) error

Call execute the wasm instance and return

Jump to

Keyboard shortcuts

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