wasmplugin

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(files ...string) (err error)

Types

type IntoExternCreator

type IntoExternCreator func(*wasmer.Store) wasmer.IntoExtern

type WASM

type WASM struct {
	*wasmer.Instance
	// contains filtered or unexported fields
}

func LoadWASMFile

func LoadWASMFile(wasmFile string, imports *WASMImports) (*WASM, error)

func (*WASM) Close

func (w *WASM) Close()

type WASMIECs

type WASMIECs map[string]IntoExternCreator

func (*WASMIECs) Add

func (w *WASMIECs) Add(name string, creator IntoExternCreator) *WASMIECs

func (*WASMIECs) Del

func (w *WASMIECs) Del(names ...string) *WASMIECs

type WASMImports

type WASMImports map[string]*WASMIECs

func NewWASMImports

func NewWASMImports() *WASMImports

func (*WASMImports) Add

func (w *WASMImports) Add(ns string, name string, creator IntoExternCreator) *WASMImports

func (*WASMImports) AddItems

func (w *WASMImports) AddItems(ns string, creators *WASMIECs) *WASMImports

func (*WASMImports) Del

func (w *WASMImports) Del(namespaces ...string) *WASMImports

func (*WASMImports) DelCreator

func (w *WASMImports) DelCreator(ns string, names ...string) *WASMImports

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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