Documentation
¶
Index ¶
- Constants
- func Go2Lua(L *lua.LState, val interface{}) lua.LValue
- func Lua2Go(value lua.LValue) (interface{}, error)
- func NewClientLValue(L *lua.LState, client fcom.Blockchain) lua.LValue
- func NewLIndexLValue(L *lua.LState, idx *idex.Index) lua.LValue
- func NewResultLValue(L *lua.LState, r *fcom.Result) lua.LValue
- func NewToolKitLValue(L *lua.LState, kit *toolkit.ToolKit) lua.LValue
- func TableLua2GoStruct(tbl *lua.LTable, st interface{}) error
- type FakeChain
- func (chain *FakeChain) Confirm(rt *fcom.Result, ops ...fcom.Option) *fcom.Result
- func (chain *FakeChain) DeployContract() error
- func (chain *FakeChain) GetContext() (string, error)
- func (chain *FakeChain) Invoke(invoke fcom.Invoke, ops ...fcom.Option) *fcom.Result
- func (chain *FakeChain) LogStatus() (int64, error)
- func (chain *FakeChain) Option(op fcom.Option) error
- func (chain *FakeChain) Query(bq fcom.Query, ops ...fcom.Option) interface{}
- func (chain *FakeChain) ResetContext() error
- func (chain *FakeChain) SetContext(ctx string) error
- func (chain *FakeChain) Statistic(statistic fcom.Statistic) (*fcom.RemoteStatistic, error)
- func (chain *FakeChain) Transfer(transfer fcom.Transfer, ops ...fcom.Option) *fcom.Result
Constants ¶
View Source
const ( Invoke = "Invoke" Transfer = "Transfer" Option = "Option" Result = "Result" Query = "Query" SetContext = "SetContext" Statistic = "Statistic" DeployContract = "DeployContract" )
Variables ¶
This section is empty.
Functions ¶
func Go2Lua ¶
func Go2Lua(L *lua.LState, val interface{}) lua.LValue
Go2Lua convert go interface val to lua.LValue value and reutrn
func Lua2Go ¶
func Lua2Go(value lua.LValue) (interface{}, error)
Lua2Go convert lua.LValue to corresponding type
func NewClientLValue ¶
func TableLua2GoStruct ¶
func TableLua2GoStruct(tbl *lua.LTable, st interface{}) error
TableLua2GoStruct maps the lua table to the given struct pointer.
Types ¶
type FakeChain ¶
type FakeChain struct { Name string // contains filtered or unexported fields }
func (*FakeChain) DeployContract ¶
func (*FakeChain) GetContext ¶
func (*FakeChain) ResetContext ¶
func (*FakeChain) SetContext ¶
Click to show internal directories.
Click to hide internal directories.