Documentation ¶
Index ¶
- Constants
- Variables
- func CastParam(kind reflect.Kind, param string) (reflect.Value, error)
- func GMInit(H GMHandler, globalVars map[string]interface{}, luapath string)
- func HandleCMD(exp string, ip string) (rs interface{})
- func LuaLogf(format string, v ...interface{})
- func RegistHander(r reflect.Value)
- type BaseGMHandler
- type GMHandler
Constants ¶
View Source
const ( //PublicStatusKey 状态主键 PublicStatusKey = "status" //PublicStatusSuccess 成功 PublicStatusSuccess = "success" //PublicStatusFailed 失败 PublicStatusFailed = "fail" )
Variables ¶
View Source
var ( //GlobalLuaState 全局lua域 GlobalLuaState *lua.LState )
Functions ¶
Types ¶
type BaseGMHandler ¶
type BaseGMHandler struct { }
BaseGMHandler GM基础工具实现类
func (BaseGMHandler) LuaScript ¶
func (h BaseGMHandler) LuaScript(fname string, params string) interface{}
LuaScript 执行GM脚本文件
Click to show internal directories.
Click to hide internal directories.