host

package
v0.0.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRustAdapter added in v0.0.23

func CreateRustAdapter()

func NewNullObject added in v0.0.15

Types

type HostArray

type HostArray struct {
	// contains filtered or unexported fields
}

func NewHostArray added in v0.0.13

func NewHostArray(h *HostImpl, typeId int32) *HostArray

func (*HostArray) GetInt

func (h *HostArray) GetInt(keyId int32) int64

func (*HostArray) GetLength added in v0.0.13

func (h *HostArray) GetLength() int32

func (*HostArray) GetObjectId added in v0.0.24

func (h *HostArray) GetObjectId(keyId int32, typeId int32) int32

func (*HostArray) GetString

func (h *HostArray) GetString(keyId int32) string

func (*HostArray) SetInt

func (h *HostArray) SetInt(keyId int32, value int64)

func (*HostArray) SetString

func (h *HostArray) SetString(keyId int32, value string)

type HostBase added in v0.0.22

type HostBase struct {
	// contains filtered or unexported fields
}

func (*HostBase) AddObject added in v0.0.23

func (h *HostBase) AddObject(obj interfaces.HostObject) int32

func (*HostBase) GetInt added in v0.0.22

func (h *HostBase) GetInt(objId int32, keyId int32) int64

func (*HostBase) GetKey added in v0.0.22

func (h *HostBase) GetKey(keyId int32) string

func (*HostBase) GetKeyId added in v0.0.23

func (h *HostBase) GetKeyId(key string) int32

func (*HostBase) GetObject added in v0.0.22

func (h *HostBase) GetObject(objId int32) interfaces.HostObject

func (*HostBase) GetObjectId added in v0.0.23

func (h *HostBase) GetObjectId(objId int32, keyId int32, typeId int32) int32

func (*HostBase) GetString added in v0.0.22

func (h *HostBase) GetString(objId int32, keyId int32) string

func (*HostBase) HasError added in v0.0.22

func (h *HostBase) HasError() bool

func (*HostBase) Init added in v0.0.23

func (h *HostBase) Init(logger LogInterface, keyMap *map[string]int32)

func (*HostBase) Log added in v0.0.22

func (h *HostBase) Log(logLevel int, text string)

func (*HostBase) Logf added in v0.0.23

func (h *HostBase) Logf(format string, a ...interface{})

func (*HostBase) SetError added in v0.0.22

func (h *HostBase) SetError(text string)

func (*HostBase) SetInt added in v0.0.22

func (h *HostBase) SetInt(objId int32, keyId int32, value int64)

func (*HostBase) SetString added in v0.0.22

func (h *HostBase) SetString(objId int32, keyId int32, value string)

type HostImpl added in v0.0.12

type HostImpl struct {
	HostBase
	// contains filtered or unexported fields
}

func NewHostImpl added in v0.0.12

func NewHostImpl() *HostImpl

func (*HostImpl) AddBalance added in v0.0.30

func (h *HostImpl) AddBalance(color string, amount int64)

func (*HostImpl) AddParamInt added in v0.0.30

func (h *HostImpl) AddParamInt(key string, value int64)

func (*HostImpl) AddParamString added in v0.0.30

func (h *HostImpl) AddParamString(key string, value string)

func (*HostImpl) AddReqBalance added in v0.0.30

func (h *HostImpl) AddReqBalance(color string, amount int64)

func (*HostImpl) AddStateInt added in v0.0.30

func (h *HostImpl) AddStateInt(key string, value int64)

func (*HostImpl) AddStateString added in v0.0.30

func (h *HostImpl) AddStateString(key string, value string)

func (*HostImpl) Object added in v0.0.30

func (h *HostImpl) Object(key string, typeId int32) interfaces.HostObject

func (*HostImpl) RootInt added in v0.0.30

func (h *HostImpl) RootInt(key string, value int64)

func (*HostImpl) RootString added in v0.0.30

func (h *HostImpl) RootString(key string, value string)

type HostMap

type HostMap struct {
	// contains filtered or unexported fields
}

func NewHostMap added in v0.0.13

func NewHostMap(h *HostImpl) *HostMap

func (*HostMap) GetInt added in v0.0.5

func (h *HostMap) GetInt(keyId int32) int64

func (*HostMap) GetLength added in v0.0.13

func (h *HostMap) GetLength() int32

func (*HostMap) GetObjectId added in v0.0.24

func (h *HostMap) GetObjectId(keyId int32, typeId int32) int32

func (*HostMap) GetString added in v0.0.5

func (h *HostMap) GetString(keyId int32) string

func (*HostMap) SetInt added in v0.0.5

func (h *HostMap) SetInt(keyId int32, value int64)

func (*HostMap) SetString added in v0.0.5

func (h *HostMap) SetString(keyId int32, value string)

type LogInterface added in v0.0.25

type LogInterface interface {
	Log(logLevel int, text string)
}

type Tracker added in v0.0.15

type Tracker struct {
	// contains filtered or unexported fields
}

func NewTracker added in v0.0.15

func NewTracker() *Tracker

func (*Tracker) AddObject added in v0.0.15

func (t *Tracker) AddObject(obj interfaces.HostObject) int32

func (*Tracker) GetKey added in v0.0.15

func (t *Tracker) GetKey(keyId int32) string

func (*Tracker) GetKeyId added in v0.0.15

func (t *Tracker) GetKeyId(key string) int32

func (*Tracker) GetObject added in v0.0.15

func (t *Tracker) GetObject(objId int32) interfaces.HostObject

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL