Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileFunc ¶ added in v0.9.0
FileFunc is a function that returns the contents of a requested file
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 NewRunnerWithRef ¶ added in v0.9.0
func NewRunnerWithRef(ref *WasmModuleRef, staticFileFunc FileFunc) *Runner
type WasmModuleRef ¶ added in v0.9.0
WasmModuleRef is a reference to a Wasm module (either its filepath or its bytes)
func ModuleRefWithData ¶ added in v0.9.0
func ModuleRefWithData(name string, data []byte) *WasmModuleRef
func (*WasmModuleRef) ModuleBytes ¶ added in v0.9.0
func (w *WasmModuleRef) ModuleBytes() ([]byte, error)
ModuleBytes returns the bytes for the module
Click to show internal directories.
Click to hide internal directories.