Documentation
¶
Index ¶
Constants ¶
View Source
const ( ScaleDownError errors.Code = iota + errorBase InvalidUUIDError InvalidAppTypeError )
View Source
const ( InvokeFlagReadOnly invokeFlag = 1 << iota InvokeFlagTrace )
View Source
const (
JavaEE = "javaee"
)
View Source
const (
LogFlagTrace logFlag = 1 << iota
)
View Source
const (
ModuleName = "eeproxy"
)
View Source
const (
PythonEE = "pyee"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallContext ¶
type CallContext interface {
GetValue(key []byte) ([]byte, error)
SetValue(key []byte, value []byte) ([]byte, error)
DeleteValue(key []byte) ([]byte, error)
ArrayDBContains(prefix, value []byte, limit int64) (bool, int, int, error)
GetInfo() *codec.TypedObj
GetBalance(addr module.Address) *big.Int
OnEvent(addr module.Address, indexed, data [][]byte) error
OnResult(status error, steps *big.Int, result *codec.TypedObj)
OnCall(from, to module.Address, value, limit *big.Int, dataType string, dataObj *codec.TypedObj)
OnAPI(status error, info *scoreapi.Info)
OnSetFeeProportion(owner module.Address, portion int)
SetCode(code []byte) error
GetObjGraph(bool) (int, []byte, []byte, error)
SetObjGraph(flags bool, nextHash int, objGraph []byte) error
Logger() log.Logger
}
type Engine ¶
type InstanceStatus ¶
type InstanceStatus int
func (InstanceStatus) String ¶
func (s InstanceStatus) String() string
type Manager ¶
type Proxy ¶
type Proxy interface {
Invoke(ctx CallContext, code string, isQuery bool, from, to module.Address,
value, limit *big.Int, method string, params *codec.TypedObj,
cid []byte, eid int, state *CodeState) error
SendResult(ctx CallContext, status error, steps *big.Int, result *codec.TypedObj, eid int, last int) error
GetAPI(ctx CallContext, code string) error
Release()
Kill() error
}
type RequestPriority ¶
type RequestPriority int
const ( ForTransaction RequestPriority = iota ForQuery )
Click to show internal directories.
Click to hide internal directories.