Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NameVersion = "w3bstream@v0.0.1"
Functions ¶
This section is empty.
Types ¶
type ABI ¶
type ABI struct { Imports ImportsHandler Instance Instance }
func (*ABI) GetExports ¶
func (a *ABI) GetExports() ExportsHandler
func (*ABI) GetImports ¶
func (a *ABI) GetImports() ImportsHandler
func (*ABI) GetInstance ¶
func (*ABI) SetImports ¶
func (a *ABI) SetImports(i ImportsHandler)
func (*ABI) SetInstance ¶
type ContextHandler ¶
type ContextHandler interface { Name() string GetImports() ImportsHandler SetImports(ImportsHandler) GetExports() ExportsHandler GetInstance() Instance SetInstance(Instance) }
type EventConsumer ¶
type EventConsumer interface {
HandleEvent(ctx context.Context, handler string, payload []byte) *EventHandleResult
}
type EventHandleResult ¶
type EventHandleResult struct { InstanceID string `json:"instanceID"` Rsp []byte `json:"-"` Code ResultStatusCode `json:"code"` ErrMsg string `json:"errMsg"` }
type ExportsHandler ¶
type ExportsHandler interface { Start() Alloc() Free() }
type ImportsHandler ¶
type InstanceState ¶
type InstanceState = enums.InstanceState
type ResultStatusCode ¶
type ResultStatusCode int32
ResultStatusCode wasm call result code
const ( ResultStatusCode_OK ResultStatusCode = iota ResultStatusCode_UnexportedHandler ResultStatusCode_ResourceNotFound ResultStatusCode_ImportNotFound ResultStatusCode_ImportCallFailed ResultStatusCode_TransDataToVMFailed ResultStatusCode_TransDataFromVMFailed ResultStatusCode_HostInternal // TODO following result status ResultStatusCode_Failed = -1 // reserved for wasm invoke failed )
Click to show internal directories.
Click to hide internal directories.