Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime-go
/ types & classes
Types & classes
58 in github.com/bytecodealliance/wasmtime-go
⨍
Functions
436
◇
Types & classes
58
↓ 1 callers
TypeAlias
ComponentItemKind
ComponentItemKind discriminates which sub-type a [ComponentItem] carries.
component_type_feat_component_model.go:116
↓ 1 callers
TypeAlias
ComponentValTypeKind
ComponentValTypeKind discriminates the WIT type that a [ComponentValType] represents. Only constants for the 13 primitive kinds (bool through string)
component_valtype_feat_component_model.go:19
↓ 1 callers
TypeAlias
ValKind
ValKind enumeration of different kinds of value types
valtype.go:8
Interface
AsExtern
AsExtern is an interface for all types which can be imported or exported as an Extern
extern.go:15
Interface
AsExternType
AsExternType is an interface for all types which can be ExternType.
externtype.go:14
Struct
Caller
Caller is provided to host-defined functions when they're invoked from WebAssembly. A `Caller` can be used for `Storelike` arguments to allow recursi
func.go:27
Struct
Component
TODO: expose ComponentFuncType so callers can introspect a function's parameter and result types. TODO: expose ComponentInstanceType / ComponentResour
component_feat_component_model.go:26
Struct
ComponentExportIndex
ComponentExportIndex is an opaque, precomputed handle pointing at a known export of a component. It has two main uses: - Caching: pass an index to [C
component_feat_component_model.go:188
Struct
ComponentInstance
ComponentInstance is a value-type handle to an instantiated component living inside a [Store]. It is created by [ComponentLinker.Instantiate]. Instan
component_instance_feat_component_model.go:15
Struct
ComponentItem
ComponentItem is one entry in a component's import or export list. The struct is a discriminated union: a `kind` tag plus a payload that depends on t
component_type_feat_component_model.go:135
Struct
ComponentLinker
ComponentLinker is used to satisfy the imports of a [Component] and instantiate it. Use [NewComponentLinker] to create one.
component_linker_feat_component_model.go:10
Struct
ComponentType
ComponentType describes the type of a [Component] — its lists of imports and exports. Walk the lists with [ComponentType.ImportNth] and [ComponentType
component_type_feat_component_model.go:26
Struct
ComponentValType
ComponentValType describes the WIT type of a value in the component model. In this release [ComponentValType.Kind] returns one of the 13 primitive [C
component_valtype_feat_component_model.go:64
Struct
Config
Config holds options used to create an Engine and customize its behavior.
config.go:46
Struct
Engine
Engine is an instance of a wasmtime engine which is used to create a `Store`. Engines are a form of global configuration for wasm compilations and mo
engine.go:13
Struct
Error
error.go:7
Struct
ExportType
ExportType is one of the exports component. A module defines a set of exports that become accessible to the host environment once the module has been
exporttype.go:9
Struct
Extern
Extern is an external value, which is the runtime representation of an entity that can be imported or exported. It is an address denoting either a fun
extern.go:10
Struct
ExternType
ExternType means one of external types which classify imports and external values with their respective types.
externtype.go:8
Struct
Frame
Frame is one of activation frames which carry the return arity n of the respective function, hold the values of its locals (including arguments) in th
trap.go:22
Struct
Func
Func is a function instance, which is the runtime representation of a function. It effectively is a closure of the original function over the runtime
func.go:17
Struct
FuncType
FuncType is one of function types which classify the signature of functions, mapping a vector of parameters to a vector of results. They are also used
functype.go:12
Struct
GcHit
reftypes_test.go:177
Struct
Global
Global is a global instance, which is the runtime representation of a global variable. It holds an individual value and a flag indicating whether it i
global.go:10
Struct
GlobalType
GlobalType is a ValType, which classify global variables and hold a value and can either be mutable or immutable.
globaltype.go:8
Struct
ImportType
ImportType is one of the imports component A module defines a set of imports that are required for instantiation.
importtype.go:9
Struct
Instance
Instance is an instantiated module instance. Once a module has been instantiated as an Instance, any exported function can be invoked externally via i
instance.go:12
Struct
Linker
Linker implements a wasmtime Linking module, which can link instantiated modules together. More details you can see [examples for C](https://bytecodea
linker.go:14
Struct
Memory
Memory instance is the runtime representation of a linear memory. It holds a vector of bytes and an optional maximum size, if one was specified at the
memory.go:14
Struct
MemoryType
MemoryType is one of Memory types which classify linear memories and their size range. The limits constrain the minimum and optionally the maximum siz
memorytype.go:9
Struct
Module
Module is a module which collects definitions for types, functions, tables, memories, and globals. In addition, it can declare imports and exports and
module.go:15
Struct
ObjToDrop
reftypes_test.go:181
TypeAlias
OptLevel
OptLevel decides what degree of optimization wasmtime will perform on generated machine code
config.go:23
TypeAlias
ProfilingStrategy
ProfilingStrategy decides what sort of profiling to enable, if any.
config.go:36
Struct
Store
Store is a general group of wasm instances, and many objects must all be created with and reference the same `Store`
store.go:16
Interface
Storelike
Storelike represents types that can be used to contextually reference a `Store`. This interface is implemented by `*Store` and `*Caller` and is perva
store.go:30
TypeAlias
Strategy
Strategy is the compilation strategies for wasmtime
config.go:13
Struct
Table
Table is a table instance, which is the runtime representation of a table. It holds a vector of reference types and an optional maximum size, if one
table.go:15
Struct
TableType
TableType is one of table types which classify tables over elements of element types within a size range.
tabletype.go:8
Struct
Trap
Trap is the trap instruction which represents the occurrence of a trap. Traps are bubbled up through nested instruction sequences, ultimately reducing
trap.go:15
TypeAlias
TrapCode
TrapCode is the code of an instruction trap.
trap.go:28
Struct
Val
Val is a primitive numeric value. Moreover, in the definition of programs, immutable sequences of values occur to represent more complex data, such as
val.go:12
Struct
ValType
ValType means one of the value types, which classify the individual values that WebAssembly code can compute with and the values that a variable accep
valtype.go:45
Struct
WasiConfig
wasi.go:12
TypeAlias
WasiDirPerms
wasi.go:154
TypeAlias
WasiFilePerms
wasi.go:155
TypeAlias
embeddedStoreData
store_test.go:105
Struct
exportTypeList
module.go:87
Struct
externList
instance.go:58
Struct
frameList
trap.go:127
Struct
funcNewEntry
store.go:60
Struct
funcWrapEntry
store.go:65
TypeAlias
i32alias
func_test.go:347
Struct
importTypeList
module.go:67
Struct
sessionData
example_test.go:770
Struct
slab
slab.go:3
Struct
storeData
State associated with a `Store`, currently used to propagate panic information through invocations as well as store Go closures that have been added t
store.go:50
Struct
testStoreData
store_test.go:107