Documentation
¶
Overview ¶
Package wasm provides the functionality for communicating with Conduit as a standalone plugin. DO NOT use this package directly.
Index ¶
Constants ¶
View Source
const ( // ErrorCodeStart is the smallest error code which the host (i.e. Conduit) can send. // The imported function _nextCommand returns an uint32 value // that is either the number of bytes actually written or an error code. // Because of that, we're reserving a range of error codes. ErrorCodeStart = math.MaxUint32 - 100 ErrorCodeNoMoreCommands = math.MaxUint32 - iota ErrorCodeUnknownCommandRequest ErrorCodeUnknownCommandResponse ErrorCodeMemoryOutOfRange )
Variables ¶
View Source
var ( ErrNoMoreCommands = NewError(ErrorCodeNoMoreCommands, "no more commands") ErrUnknownCommandRequest = NewError(ErrorCodeUnknownCommandRequest, "unknown command request") ErrUnknownCommandResponse = NewError(ErrorCodeUnknownCommandResponse, "unknown command response") ErrMemoryOutOfRange = NewError(ErrorCodeMemoryOutOfRange, "memory out of range") )
Functions ¶
func CodeFromError ¶
Types ¶
type Error ¶
Error is an error sent to or received from the host (i.e. Conduit).
func NewErrorFromCode ¶
Click to show internal directories.
Click to hide internal directories.