Documentation ¶
Index ¶
- Constants
- Variables
- func GetVersion() string
- func GetVersionMajor() uint
- func GetVersionMinor() uint
- func GetVersionPatch() uint
- func ListPlugins() []string
- func LoadPluginDefaultPaths()
- func LoadPluginFromPath(name string)
- func RunWasmEdgeAOTCompilerCLI(argv []string) int
- func RunWasmEdgeCLI(argv []string) int
- func RunWasmEdgeUnifiedCLI(argv []string) int
- func SetLogDebugLevel()
- func SetLogErrorLevel()
- func SetLogOff()
- type AST
- type Async
- type CallingFrame
- type Compiler
- type CompilerOptimizationLevel
- type CompilerOutputFormat
- type Configure
- func (self *Configure) AddConfig(conf interface{})
- func (self *Configure) GetCompilerOptimizationLevel() CompilerOptimizationLevel
- func (self *Configure) GetCompilerOutputFormat() CompilerOutputFormat
- func (self *Configure) GetMaxMemoryPage() uint
- func (self *Configure) HasConfig(conf interface{}) bool
- func (self *Configure) IsCompilerDumpIR() bool
- func (self *Configure) IsCompilerGenericBinary() bool
- func (self *Configure) IsForceInterpreter() bool
- func (self *Configure) IsStatisticsCostMeasuring() bool
- func (self *Configure) IsStatisticsInstructionCounting() bool
- func (self *Configure) IsStatisticsTimeMeasuring() bool
- func (self *Configure) Release()
- func (self *Configure) RemoveConfig(conf interface{})
- func (self *Configure) SetCompilerDumpIR(isdump bool)
- func (self *Configure) SetCompilerGenericBinary(isgeneric bool)
- func (self *Configure) SetCompilerOptimizationLevel(level CompilerOptimizationLevel)
- func (self *Configure) SetCompilerOutputFormat(format CompilerOutputFormat)
- func (self *Configure) SetForceInterpreter(isinterpreter bool)
- func (self *Configure) SetMaxMemoryPage(pagesize uint)
- func (self *Configure) SetStatisticsCostMeasuring(ismeasure bool)
- func (self *Configure) SetStatisticsInstructionCounting(iscount bool)
- func (self *Configure) SetStatisticsTimeMeasuring(ismeasure bool)
- type ErrCategory
- type Executor
- func (self *Executor) AsyncInvoke(funcinst *Function, params ...interface{}) *Async
- func (self *Executor) Instantiate(store *Store, ast *AST) (*Module, error)
- func (self *Executor) Invoke(funcinst *Function, params ...interface{}) ([]interface{}, error)
- func (self *Executor) Register(store *Store, ast *AST, modname string) (*Module, error)
- func (self *Executor) RegisterImport(store *Store, module *Module) error
- func (self *Executor) Release()
- type ExportType
- type ExternRef
- type ExternType
- type FuncRef
- type Function
- type FunctionType
- type Global
- type GlobalType
- type HostRegistration
- type ImportType
- type Limit
- type Loader
- type Memory
- type MemoryType
- type Module
- func (self *Module) AddFunction(name string, inst *Function)
- func (self *Module) AddGlobal(name string, inst *Global)
- func (self *Module) AddMemory(name string, inst *Memory)
- func (self *Module) AddTable(name string, inst *Table)
- func (self *Module) FindFunction(name string) *Function
- func (self *Module) FindGlobal(name string) *Global
- func (self *Module) FindMemory(name string) *Memory
- func (self *Module) FindTable(name string) *Table
- func (self *Module) GetName() string
- func (self *Module) InitWasi(args []string, envs []string, preopens []string)
- func (self *Module) InitWasmEdgeProcess(allowedcmds []string, allowall bool)
- func (self *Module) ListFunction() []string
- func (self *Module) ListGlobal() []string
- func (self *Module) ListMemory() []string
- func (self *Module) ListTable() []string
- func (self *Module) Release()
- func (self *Module) WasiGetExitCode() uint
- type Plugin
- type Proposal
- type RefType
- type Result
- type Statistics
- type Store
- type Table
- type TableType
- type V128
- type VM
- func (self *VM) AsyncExecute(funcname string, params ...interface{}) *Async
- func (self *VM) AsyncExecuteRegistered(modname string, funcname string, params ...interface{}) *Async
- func (self *VM) AsyncRunWasmAST(ast *AST, funcname string, params ...interface{}) *Async
- func (self *VM) AsyncRunWasmBuffer(buf []byte, funcname string, params ...interface{}) *Async
- func (self *VM) AsyncRunWasmFile(path string, funcname string, params ...interface{}) *Async
- func (self *VM) Cleanup()
- func (self *VM) Execute(funcname string, params ...interface{}) ([]interface{}, error)
- func (self *VM) ExecuteBindgen(funcname string, rettype bindgen, params ...interface{}) (interface{}, error)
- func (self *VM) ExecuteBindgenRegistered(modname string, funcname string, rettype bindgen, params ...interface{}) (interface{}, error)
- func (self *VM) ExecuteRegistered(modname string, funcname string, params ...interface{}) ([]interface{}, error)
- func (self *VM) GetActiveModule() *Module
- func (self *VM) GetExecutor() *Executor
- func (self *VM) GetFunctionList() ([]string, []*FunctionType)
- func (self *VM) GetFunctionType(funcname string) *FunctionType
- func (self *VM) GetFunctionTypeRegistered(modname string, funcname string) *FunctionType
- func (self *VM) GetImportModule(host HostRegistration) *Module
- func (self *VM) GetLoader() *Loader
- func (self *VM) GetRegisteredModule(name string) *Module
- func (self *VM) GetStatistics() *Statistics
- func (self *VM) GetStore() *Store
- func (self *VM) GetValidator() *Validator
- func (self *VM) Instantiate() error
- func (self *VM) ListRegisteredModule() []string
- func (self *VM) LoadWasmAST(ast *AST) error
- func (self *VM) LoadWasmBuffer(buf []byte) error
- func (self *VM) LoadWasmFile(path string) error
- func (self *VM) RegisterAST(modname string, ast *AST) error
- func (self *VM) RegisterModule(module *Module) error
- func (self *VM) RegisterWasmBuffer(modname string, buf []byte) error
- func (self *VM) RegisterWasmFile(modname string, path string) error
- func (self *VM) Release()
- func (self *VM) RunWasmAST(ast *AST, funcname string, params ...interface{}) ([]interface{}, error)
- func (self *VM) RunWasmBuffer(buf []byte, funcname string, params ...interface{}) ([]interface{}, error)
- func (self *VM) RunWasmFile(path string, funcname string, params ...interface{}) ([]interface{}, error)
- func (self *VM) Validate() error
- type ValMut
- type ValType
- type Validator
Constants ¶
View Source
const ( ExternType_Function = ExternType(C.WasmEdge_ExternalType_Function) ExternType_Table = ExternType(C.WasmEdge_ExternalType_Table) ExternType_Memory = ExternType(C.WasmEdge_ExternalType_Memory) ExternType_Global = ExternType(C.WasmEdge_ExternalType_Global) )
View Source
const ( IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) SIMD = Proposal(C.WasmEdge_Proposal_SIMD) TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) MULTI_MEMORIES = Proposal(C.WasmEdge_Proposal_MultiMemories) ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) EXTENDED_CONST = Proposal(C.WasmEdge_Proposal_ExtendedConst) THREADS = Proposal(C.WasmEdge_Proposal_Threads) FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) )
View Source
const ( // Disable as many optimizations as possible. CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) // Optimize quickly without destroying debuggability. CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) // Optimize for fast execution as much as possible. CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) /// Optimize for small code size as much as possible. CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) )
View Source
const ( /// Native dynamic library format. CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) /// WebAssembly with AOT compiled codes in custom section. CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) )
View Source
const ( ErrCategory_WASM = ErrCategory(C.WasmEdge_ErrCategory_WASM) ErrCategory_UserLevel = ErrCategory(C.WasmEdge_ErrCategory_UserLevelError) )
View Source
const ( ValType_I32 = ValType(C.WasmEdge_ValType_I32) ValType_I64 = ValType(C.WasmEdge_ValType_I64) ValType_F32 = ValType(C.WasmEdge_ValType_F32) ValType_F64 = ValType(C.WasmEdge_ValType_F64) ValType_V128 = ValType(C.WasmEdge_ValType_V128) ValType_FuncRef = ValType(C.WasmEdge_ValType_FuncRef) ValType_ExternRef = ValType(C.WasmEdge_ValType_ExternRef) )
View Source
const ( RefType_FuncRef = RefType(C.WasmEdge_ValType_FuncRef) RefType_ExternRef = RefType(C.WasmEdge_ValType_ExternRef) )
View Source
const ( ValMut_Const = ValMut(C.WasmEdge_Mutability_Const) ValMut_Var = ValMut(C.WasmEdge_Mutability_Var) )
View Source
const ( Bindgen_return_void bindgen = iota Bindgen_return_i32 bindgen = iota Bindgen_return_i64 bindgen = iota Bindgen_return_array bindgen = iota )
View Source
const (
WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi)
)
Variables ¶
View Source
var ( Result_Success = Result{/* contains filtered or unexported fields */} Result_Terminate = Result{/* contains filtered or unexported fields */} Result_Fail = Result{/* contains filtered or unexported fields */} )
Functions ¶
func GetVersion ¶
func GetVersion() string
func GetVersionMajor ¶
func GetVersionMajor() uint
func GetVersionMinor ¶
func GetVersionMinor() uint
func GetVersionPatch ¶
func GetVersionPatch() uint
func ListPlugins ¶ added in v0.12.0
func ListPlugins() []string
func LoadPluginDefaultPaths ¶ added in v0.10.1
func LoadPluginDefaultPaths()
func LoadPluginFromPath ¶ added in v0.12.0
func LoadPluginFromPath(name string)
func RunWasmEdgeAOTCompilerCLI ¶ added in v0.10.1
func RunWasmEdgeCLI ¶ added in v0.10.1
func RunWasmEdgeUnifiedCLI ¶ added in v0.13.0
func SetLogDebugLevel ¶
func SetLogDebugLevel()
func SetLogErrorLevel ¶
func SetLogErrorLevel()
Types ¶
type AST ¶
type AST struct {
// contains filtered or unexported fields
}
func (*AST) ListExports ¶ added in v0.9.0
func (self *AST) ListExports() []*ExportType
func (*AST) ListImports ¶ added in v0.9.0
func (self *AST) ListImports() []*ImportType
type CallingFrame ¶ added in v0.11.0
type CallingFrame struct {
// contains filtered or unexported fields
}
func (*CallingFrame) GetExecutor ¶ added in v0.11.0
func (self *CallingFrame) GetExecutor() *Executor
func (*CallingFrame) GetMemoryByIndex ¶ added in v0.11.0
func (self *CallingFrame) GetMemoryByIndex(idx int) *Memory
func (*CallingFrame) GetModule ¶ added in v0.11.0
func (self *CallingFrame) GetModule() *Module
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶
func NewCompiler() *Compiler
func NewCompilerWithConfig ¶
type CompilerOptimizationLevel ¶
type CompilerOptimizationLevel C.enum_WasmEdge_CompilerOptimizationLevel
type CompilerOutputFormat ¶ added in v0.9.0
type CompilerOutputFormat C.enum_WasmEdge_CompilerOutputFormat
type Configure ¶
type Configure struct {
// contains filtered or unexported fields
}
func NewConfigure ¶
func NewConfigure(params ...interface{}) *Configure
func (*Configure) GetCompilerOptimizationLevel ¶
func (self *Configure) GetCompilerOptimizationLevel() CompilerOptimizationLevel
func (*Configure) GetCompilerOutputFormat ¶ added in v0.9.0
func (self *Configure) GetCompilerOutputFormat() CompilerOutputFormat
func (*Configure) GetMaxMemoryPage ¶ added in v0.9.0
func (*Configure) IsCompilerDumpIR ¶
func (*Configure) IsCompilerGenericBinary ¶ added in v0.9.0
func (*Configure) IsForceInterpreter ¶ added in v0.11.2
func (*Configure) IsStatisticsCostMeasuring ¶ added in v0.9.0
func (*Configure) IsStatisticsInstructionCounting ¶ added in v0.9.0
func (*Configure) IsStatisticsTimeMeasuring ¶ added in v0.9.0
func (*Configure) RemoveConfig ¶
func (self *Configure) RemoveConfig(conf interface{})
func (*Configure) SetCompilerDumpIR ¶
func (*Configure) SetCompilerGenericBinary ¶ added in v0.9.0
func (*Configure) SetCompilerOptimizationLevel ¶
func (self *Configure) SetCompilerOptimizationLevel(level CompilerOptimizationLevel)
func (*Configure) SetCompilerOutputFormat ¶ added in v0.9.0
func (self *Configure) SetCompilerOutputFormat(format CompilerOutputFormat)
func (*Configure) SetForceInterpreter ¶ added in v0.11.2
func (*Configure) SetMaxMemoryPage ¶ added in v0.9.0
func (*Configure) SetStatisticsCostMeasuring ¶ added in v0.9.0
func (*Configure) SetStatisticsInstructionCounting ¶ added in v0.9.0
func (*Configure) SetStatisticsTimeMeasuring ¶ added in v0.9.0
type ErrCategory ¶ added in v0.11.0
type ErrCategory C.enum_WasmEdge_ErrCategory
type Executor ¶ added in v0.9.0
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶ added in v0.9.0
func NewExecutor() *Executor
func NewExecutorWithConfig ¶ added in v0.9.0
func NewExecutorWithConfigAndStatistics ¶ added in v0.9.0
func NewExecutorWithConfigAndStatistics(conf *Configure, stat *Statistics) *Executor
func NewExecutorWithStatistics ¶ added in v0.9.0
func NewExecutorWithStatistics(stat *Statistics) *Executor
func (*Executor) AsyncInvoke ¶ added in v0.13.0
func (*Executor) Instantiate ¶ added in v0.9.0
func (*Executor) RegisterImport ¶ added in v0.9.0
type ExportType ¶ added in v0.9.0
type ExportType struct {
// contains filtered or unexported fields
}
func (*ExportType) GetExternalName ¶ added in v0.9.0
func (self *ExportType) GetExternalName() string
func (*ExportType) GetExternalType ¶ added in v0.9.0
func (self *ExportType) GetExternalType() ExternType
func (*ExportType) GetExternalValue ¶ added in v0.9.0
func (self *ExportType) GetExternalValue() interface{}
type ExternRef ¶
type ExternRef struct {
// contains filtered or unexported fields
}
func NewExternRef ¶
func NewExternRef(ptr interface{}) ExternRef
type ExternType ¶ added in v0.9.0
type ExternType C.enum_WasmEdge_ExternalType
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
func NewFunction ¶ added in v0.9.0
func NewFunction(ftype *FunctionType, fn hostFunctionSignature, additional interface{}, cost uint) *Function
func (*Function) GetFunctionType ¶
func (self *Function) GetFunctionType() *FunctionType
type FunctionType ¶
type FunctionType struct {
// contains filtered or unexported fields
}
func NewFunctionType ¶
func NewFunctionType(params []ValType, returns []ValType) *FunctionType
func (*FunctionType) GetParameters ¶
func (self *FunctionType) GetParameters() []ValType
func (*FunctionType) GetParametersLength ¶ added in v0.9.0
func (self *FunctionType) GetParametersLength() uint
func (*FunctionType) GetReturns ¶
func (self *FunctionType) GetReturns() []ValType
func (*FunctionType) GetReturnsLength ¶ added in v0.9.0
func (self *FunctionType) GetReturnsLength() uint
func (*FunctionType) Release ¶ added in v0.9.0
func (self *FunctionType) Release()
type Global ¶
type Global struct {
// contains filtered or unexported fields
}
func NewGlobal ¶
func NewGlobal(gtype *GlobalType, val interface{}) *Global
func (*Global) GetGlobalType ¶ added in v0.9.0
func (self *Global) GetGlobalType() *GlobalType
type GlobalType ¶ added in v0.9.0
type GlobalType struct {
// contains filtered or unexported fields
}
func NewGlobalType ¶ added in v0.9.0
func NewGlobalType(vtype ValType, vmut ValMut) *GlobalType
func (*GlobalType) GetMutability ¶ added in v0.9.0
func (self *GlobalType) GetMutability() ValMut
func (*GlobalType) GetValType ¶ added in v0.9.0
func (self *GlobalType) GetValType() ValType
func (*GlobalType) Release ¶ added in v0.9.0
func (self *GlobalType) Release()
type HostRegistration ¶
type HostRegistration C.enum_WasmEdge_HostRegistration
type ImportType ¶ added in v0.9.0
type ImportType struct {
// contains filtered or unexported fields
}
func (*ImportType) GetExternalName ¶ added in v0.9.0
func (self *ImportType) GetExternalName() string
func (*ImportType) GetExternalType ¶ added in v0.9.0
func (self *ImportType) GetExternalType() ExternType
func (*ImportType) GetExternalValue ¶ added in v0.9.0
func (self *ImportType) GetExternalValue() interface{}
func (*ImportType) GetModuleName ¶ added in v0.9.0
func (self *ImportType) GetModuleName() string
type Limit ¶
type Limit struct {
// contains filtered or unexported fields
}
func NewLimitShared ¶ added in v0.10.1
func NewLimitSharedWithMax ¶ added in v0.10.1
func NewLimitWithMax ¶ added in v0.9.0
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func NewLoaderWithConfig ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func NewMemory ¶
func NewMemory(mtype *MemoryType) *Memory
func (*Memory) GetMemoryType ¶ added in v0.9.0
func (self *Memory) GetMemoryType() *MemoryType
func (*Memory) GetPageSize ¶
type MemoryType ¶ added in v0.9.0
type MemoryType struct {
// contains filtered or unexported fields
}
func NewMemoryType ¶ added in v0.9.0
func NewMemoryType(lim *Limit) *MemoryType
func (*MemoryType) GetLimit ¶ added in v0.9.0
func (self *MemoryType) GetLimit() *Limit
func (*MemoryType) Release ¶ added in v0.9.0
func (self *MemoryType) Release()
type Module ¶ added in v0.10.0
type Module struct {
// contains filtered or unexported fields
}
func NewWasiModule ¶ added in v0.10.0
func (*Module) AddFunction ¶ added in v0.10.0
func (*Module) FindFunction ¶ added in v0.10.0
func (*Module) FindGlobal ¶ added in v0.10.0
func (*Module) FindMemory ¶ added in v0.10.0
func (*Module) InitWasmEdgeProcess ¶ added in v0.10.0
func (*Module) ListFunction ¶ added in v0.10.0
func (*Module) ListGlobal ¶ added in v0.10.0
func (*Module) ListMemory ¶ added in v0.10.0
func (*Module) WasiGetExitCode ¶ added in v0.10.0
type Plugin ¶ added in v0.12.0
type Plugin struct {
// contains filtered or unexported fields
}
func FindPlugin ¶ added in v0.12.0
func (*Plugin) CreateModule ¶ added in v0.12.0
func (*Plugin) ListModule ¶ added in v0.12.0
type Proposal ¶
type Proposal C.enum_WasmEdge_Proposal
type RefType ¶
type RefType C.enum_WasmEdge_RefType
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func NewResult ¶ added in v0.11.0
func NewResult(cate ErrCategory, code int) Result
func (*Result) GetErrorCategory ¶ added in v0.11.0
func (res *Result) GetErrorCategory() ErrCategory
type Statistics ¶
type Statistics struct {
// contains filtered or unexported fields
}
func NewStatistics ¶
func NewStatistics() *Statistics
func (*Statistics) GetInstrCount ¶
func (self *Statistics) GetInstrCount() uint
func (*Statistics) GetInstrPerSecond ¶
func (self *Statistics) GetInstrPerSecond() float64
func (*Statistics) GetTotalCost ¶
func (self *Statistics) GetTotalCost() uint
func (*Statistics) Release ¶ added in v0.9.0
func (self *Statistics) Release()
func (*Statistics) SetCostLimit ¶
func (self *Statistics) SetCostLimit(limit uint)
func (*Statistics) SetCostTable ¶
func (self *Statistics) SetCostTable(table []uint64)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) FindModule ¶ added in v0.10.0
func (*Store) ListModule ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) GetTableType ¶ added in v0.9.0
type TableType ¶ added in v0.9.0
type TableType struct {
// contains filtered or unexported fields
}
func NewTableType ¶ added in v0.9.0
func (*TableType) GetRefType ¶ added in v0.9.0
type VM ¶
type VM struct {
// contains filtered or unexported fields
}
func NewVMWithConfig ¶
func NewVMWithConfigAndStore ¶
func NewVMWithStore ¶
func (*VM) AsyncExecute ¶ added in v0.9.1
func (*VM) AsyncExecuteRegistered ¶ added in v0.9.1
func (*VM) AsyncRunWasmAST ¶ added in v0.9.1
func (*VM) AsyncRunWasmBuffer ¶ added in v0.9.1
func (*VM) AsyncRunWasmFile ¶ added in v0.9.1
func (*VM) ExecuteBindgen ¶
func (self *VM) ExecuteBindgen(funcname string, rettype bindgen, params ...interface{}) (interface{}, error)
Special execute function for running with wasm-bindgen.
func (*VM) ExecuteBindgenRegistered ¶
func (self *VM) ExecuteBindgenRegistered(modname string, funcname string, rettype bindgen, params ...interface{}) (interface{}, error)
Special execute function for running with wasm-bindgen.
func (*VM) ExecuteRegistered ¶
func (*VM) GetActiveModule ¶ added in v0.10.0
func (*VM) GetExecutor ¶ added in v0.10.1
func (*VM) GetFunctionList ¶
func (self *VM) GetFunctionList() ([]string, []*FunctionType)
func (*VM) GetFunctionType ¶
func (self *VM) GetFunctionType(funcname string) *FunctionType
func (*VM) GetFunctionTypeRegistered ¶
func (self *VM) GetFunctionTypeRegistered(modname string, funcname string) *FunctionType
func (*VM) GetImportModule ¶ added in v0.10.0
func (self *VM) GetImportModule(host HostRegistration) *Module
func (*VM) GetRegisteredModule ¶ added in v0.12.0
func (*VM) GetStatistics ¶
func (self *VM) GetStatistics() *Statistics
func (*VM) GetValidator ¶ added in v0.10.1
func (*VM) Instantiate ¶
func (*VM) ListRegisteredModule ¶ added in v0.12.0
func (*VM) LoadWasmAST ¶
func (*VM) LoadWasmBuffer ¶
func (*VM) LoadWasmFile ¶
func (*VM) RegisterModule ¶ added in v0.10.0
func (*VM) RegisterWasmBuffer ¶
func (*VM) RunWasmAST ¶
func (*VM) RunWasmBuffer ¶
func (*VM) RunWasmFile ¶
type ValMut ¶
type ValMut C.enum_WasmEdge_Mutability
type ValType ¶
type ValType C.enum_WasmEdge_ValType
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator() *Validator
func NewValidatorWithConfig ¶
Click to show internal directories.
Click to hide internal directories.