Documentation ¶
Index ¶
- type LuaWorker
- func (worker *LuaWorker) CheckContractCode(code string) error
- func (worker *LuaWorker) ExecJob(data interface{}) (interface{}, error)
- func (worker *LuaWorker) GetContractCode() (string, error)
- func (worker *LuaWorker) InitContract(wp *vm.WorkerProc) (interface{}, error)
- func (worker *LuaWorker) InvokeExecute(wp *vm.WorkerProc) (interface{}, error)
- func (worker *LuaWorker) QueryContract(wp *vm.WorkerProc) ([]byte, error)
- func (worker *LuaWorker) StoreContractCode() error
- func (worker *LuaWorker) VmInitialize()
- func (worker *LuaWorker) VmJob(data interface{}) (interface{}, error)
- func (worker *LuaWorker) VmReady() bool
- func (worker *LuaWorker) VmTerminate()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LuaWorker ¶
Start start vm process
func (*LuaWorker) CheckContractCode ¶
func (*LuaWorker) GetContractCode ¶
func (*LuaWorker) InitContract ¶
func (worker *LuaWorker) InitContract(wp *vm.WorkerProc) (interface{}, error)
func (*LuaWorker) InvokeExecute ¶
func (worker *LuaWorker) InvokeExecute(wp *vm.WorkerProc) (interface{}, error)
func (*LuaWorker) QueryContract ¶
func (worker *LuaWorker) QueryContract(wp *vm.WorkerProc) ([]byte, error)
func (*LuaWorker) StoreContractCode ¶
func (*LuaWorker) VmInitialize ¶
func (worker *LuaWorker) VmInitialize()
func (*LuaWorker) VmTerminate ¶
func (worker *LuaWorker) VmTerminate()
Click to show internal directories.
Click to hide internal directories.