Documentation ¶
Index ¶
- Constants
- Variables
- func Exec(a app.IApp, program IProgram, ctx IContext) error
- func GetFileContent(path string) (string, error)
- func LuaToValue(L *lua.State, i int) interface{}
- type Context
- type IContext
- type ILogic
- type IProgram
- type LuaContext
- type LuaViewLogic
- type OutputField
- type OutputLogic
- type Program
- type RequestLogic
- type TaskLogic
- type VarLogic
- type VerifyLogic
- type View
- type ViewLogic
- type YamlProgram
Constants ¶
View Source
const ERROR_UNKNOWN = 0xff00
Variables ¶
View Source
var ErrmsgKeys = []string{"output", "errmsg"}
View Source
var ErrnoKeys = []string{"output", "errno"}
View Source
var InputKeys = []string{"input"}
View Source
var ObjectKeys = []string{"object"}
View Source
var OutputKeys = []string{"output"}
View Source
var ResultKeys = []string{"result"}
View Source
var ViewKeys = []string{"view"}
Functions ¶
func GetFileContent ¶
func LuaToValue ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) ReflectValue ¶
func (C *Context) ReflectValue(value interface{}) interface{}
type LuaContext ¶
func NewLuaContext ¶
func NewLuaContext() *LuaContext
func (*LuaContext) Close ¶
func (L *LuaContext) Close()
func (*LuaContext) ReflectValue ¶
func (C *LuaContext) ReflectValue(value interface{}) interface{}
type LuaViewLogic ¶
type LuaViewLogic struct {
ViewLogic
}
type OutputField ¶
type OutputLogic ¶
type OutputLogic struct { Keys string Value interface{} Fields []OutputField Done ILogic }
type RequestLogic ¶
type VerifyLogic ¶
type ViewLogic ¶
type YamlProgram ¶
type YamlProgram struct { Program // contains filtered or unexported fields }
func NewYamlProgram ¶
func NewYamlProgram(path string) (*YamlProgram, error)
func (*YamlProgram) GetLogic ¶
func (P *YamlProgram) GetLogic(name string) ILogic
func (*YamlProgram) Use ¶
func (P *YamlProgram) Use(name string, logic ILogic)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.