Documentation ¶
Index ¶
- Constants
- func NewResult(code int, r interface{}) lua.LString
- func Splite(str lua.LString) []string
- type Activity
- type CoreIoBus
- type DataBase
- type HandleErr
- type Purview
- type ReponseWriter
- type Request
- type Response
- type VM
- type VMs
- func (this VMs) AddRowFunc(l *lua.LState) int
- func (this VMs) DelRowFunc(l *lua.LState) int
- func (this VMs) FindRowFunc(l *lua.LState) int
- func (this *VMs) GetActivities(auth []byte, action string) (string, error)
- func (this *VMs) GetMapper() map[string]string
- func (this *VMs) GetPurviewActivities(auth string) ([]string, error)
- func (this VMs) InitDatabase(l *lua.LState, a *Activity)
- func (this *VMs) InitMap()
- func (this *VMs) ListNeedArgs(auth []byte, action string) ([]string, error)
- func (this VMs) ModRowFunc(l *lua.LState) int
- func (this *VMs) RawLuaHandler(str string) string
- func (this *VMs) RegeditApi(list map[string]func(*lua.LState) int)
- func (this *VMs) ReloadConfig() string
- func (this *VMs) RequestHandler(w ReponseWriter, r *Request) error
- func (this *VMs) SetAuther(p Purview)
- func (this *VMs) SetDataBase(database DataBase)
Constants ¶
View Source
const SCRIPT_DIR = "./scripts/"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Activity ¶
type Activity struct { L *lua.LState Father string Pass string Name string Types string NeedArgs string Groups string Handler lua.LValue }
func FindActivityByName ¶
type ReponseWriter ¶
type VMs ¶
type VMs struct { Scripts string Activities map[string]string Mappler map[string]string Api map[string]func(*lua.LState) int Db DataBase Auth Purview Re *regexp.Regexp }
func (VMs) AddRowFunc ¶
func (VMs) DelRowFunc ¶
func (VMs) FindRowFunc ¶
func (*VMs) GetActivities ¶
func (*VMs) GetPurviewActivities ¶
func (VMs) InitDatabase ¶
func (*VMs) ListNeedArgs ¶
func (VMs) ModRowFunc ¶
func (*VMs) RawLuaHandler ¶
func (*VMs) RegeditApi ¶
func (*VMs) ReloadConfig ¶
func (*VMs) RequestHandler ¶
func (this *VMs) RequestHandler(w ReponseWriter, r *Request) error
func (*VMs) SetDataBase ¶
Click to show internal directories.
Click to hide internal directories.