luaglue

package
v0.0.0-...-402233a Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpLoader

func HttpLoader(state *lua.LState) int

加载模块

func JsonLoader

func JsonLoader(state *lua.LState) int

加载模块

Types

type LuaGlue

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

Lua胶水

func NewLuaGlue

func NewLuaGlue() (*LuaGlue, error)

创建实例

func (*LuaGlue) Close

func (glue *LuaGlue) Close()

释放资源

func (*LuaGlue) DepositAddress

func (glue *LuaGlue) DepositAddress(userID int64) (string, string)

获取充值地址

func (*LuaGlue) OnTick

func (glue *LuaGlue) OnTick(delaytime float64)

时钟事件

func (*LuaGlue) OnWithdraw

func (glue *LuaGlue) OnWithdraw(to, symbol, amount string, id string)

接收提现请求

func (*LuaGlue) ValidAddress

func (glue *LuaGlue) ValidAddress(address string) bool

地址是否有效

func (*LuaGlue) ValidTransaction

func (glue *LuaGlue) ValidTransaction(txid, from, to, symbol, amount, memo string) bool

交易是否有效

Jump to

Keyboard shortcuts

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