Documentation
¶
Index ¶
- Variables
- func NewNullObject(h interfaces.HostInterface) interfaces.HostObject
- type HostArray
- func (h *HostArray) GetBytes(keyId int32) []byte
- func (h *HostArray) GetInt(keyId int32) int64
- func (h *HostArray) GetLength() int32
- func (h *HostArray) GetObjectId(keyId int32, typeId int32) int32
- func (h *HostArray) GetString(keyId int32) string
- func (h *HostArray) SetBytes(keyId int32, value []byte)
- func (h *HostArray) SetInt(keyId int32, value int64)
- func (h *HostArray) SetString(keyId int32, value string)
- type HostBase
- func (h *HostBase) AddObject(obj interfaces.HostObject) int32
- func (h *HostBase) FdWrite(fd int32, iovs int32, size int32, written int32) int32
- func (h *HostBase) GetBytes(objId int32, keyId int32) []byte
- func (h *HostBase) GetInt(objId int32, keyId int32) int64
- func (h *HostBase) GetKey(keyId int32) string
- func (h *HostBase) GetKeyId(key string) int32
- func (h *HostBase) GetObject(objId int32) interfaces.HostObject
- func (h *HostBase) GetObjectId(objId int32, keyId int32, typeId int32) int32
- func (h *HostBase) GetString(objId int32, keyId int32) string
- func (h *HostBase) HasError() bool
- func (h *HostBase) Init(logger LogInterface, root interfaces.HostObject, keyMap *map[string]int32)
- func (h *HostBase) LoadWasm(wasmFile string) error
- func (h *HostBase) Log(logLevel int, text string)
- func (h *HostBase) Logf(format string, a ...interface{})
- func (h *HostBase) RunWasmFunction(functionName string) error
- func (h *HostBase) SetBytes(objId int32, keyId int32, value []byte)
- func (h *HostBase) SetError(text string)
- func (h *HostBase) SetInt(objId int32, keyId int32, value int64)
- func (h *HostBase) SetString(objId int32, keyId int32, value string)
- type HostImpl
- type HostMap
- func (h *HostMap) GetBytes(keyId int32) []byte
- func (h *HostMap) GetInt(keyId int32) int64
- func (h *HostMap) GetLength() int32
- func (h *HostMap) GetObjectId(keyId int32, typeId int32) int32
- func (h *HostMap) GetString(keyId int32) string
- func (h *HostMap) SetBytes(keyId int32, value []byte)
- func (h *HostMap) SetInt(keyId int32, value int64)
- func (h *HostMap) SetString(keyId int32, value string)
- type LogInterface
- type NullObject
- func (n *NullObject) GetBytes(keyId int32) []byte
- func (n *NullObject) GetInt(keyId int32) int64
- func (n *NullObject) GetObjectId(keyId int32, typeId int32) int32
- func (n *NullObject) GetString(keyId int32) string
- func (n *NullObject) SetBytes(keyId int32, value []byte)
- func (n *NullObject) SetInt(keyId int32, value int64)
- func (n *NullObject) SetString(keyId int32, value string)
- type Tracker
Constants ¶
This section is empty.
Variables ¶
View Source
var EnableImmutableChecks = true
Functions ¶
func NewNullObject ¶
func NewNullObject(h interfaces.HostInterface) interfaces.HostObject
Types ¶
type HostArray ¶
type HostArray struct {
// contains filtered or unexported fields
}
func NewHostArray ¶
type HostBase ¶
type HostBase struct {
// contains filtered or unexported fields
}
func (*HostBase) AddObject ¶
func (h *HostBase) AddObject(obj interfaces.HostObject) int32
func (*HostBase) GetObject ¶
func (h *HostBase) GetObject(objId int32) interfaces.HostObject
func (*HostBase) GetObjectId ¶
func (*HostBase) Init ¶
func (h *HostBase) Init(logger LogInterface, root interfaces.HostObject, keyMap *map[string]int32)
func (*HostBase) RunWasmFunction ¶
type HostImpl ¶
type HostImpl struct {
HostBase
}
func NewHostImpl ¶
func NewHostImpl() *HostImpl
func (*HostImpl) AddBalance ¶
func (h *HostImpl) AddBalance(obj interfaces.HostObject, color string, amount int64)
func (*HostImpl) Object ¶
func (h *HostImpl) Object(obj interfaces.HostObject, key string, typeId int32) interfaces.HostObject
type LogInterface ¶
type NullObject ¶
type NullObject struct {
// contains filtered or unexported fields
}
func (*NullObject) GetBytes ¶
func (n *NullObject) GetBytes(keyId int32) []byte
func (*NullObject) GetInt ¶
func (n *NullObject) GetInt(keyId int32) int64
func (*NullObject) GetObjectId ¶
func (n *NullObject) GetObjectId(keyId int32, typeId int32) int32
func (*NullObject) GetString ¶
func (n *NullObject) GetString(keyId int32) string
func (*NullObject) SetBytes ¶
func (n *NullObject) SetBytes(keyId int32, value []byte)
func (*NullObject) SetInt ¶
func (n *NullObject) SetInt(keyId int32, value int64)
func (*NullObject) SetString ¶
func (n *NullObject) SetString(keyId int32, value string)
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
func NewTracker ¶
func (*Tracker) AddObject ¶
func (t *Tracker) AddObject(obj interfaces.HostObject) int32
func (*Tracker) GetObject ¶
func (t *Tracker) GetObject(objId int32) interfaces.HostObject
Source Files
¶
Click to show internal directories.
Click to hide internal directories.