Versions in this module Expand all Collapse all v1 v1.0.0 Nov 9, 2019 Changes in this version + func Config() framework.Configer + type AppAsync interface + CancelCompleted func() + Sleep func(millisecond int64) + type AppController struct + func (this *AppController) Async(run func(ac AppAsync), completeds ...func()) + func (this *AppController) Gotree(child interface{}) *AppController + func (this *AppController) OnCreate(method string, argv interface{}) + func (this *AppController) OnDestory(method string, reply interface{}, e error) + func (this *AppController) SessionGet(key string, value interface{}) error + func (this *AppController) SessionSet(key string, value interface{}) + type AppService struct + func (this *AppService) CallDao(obj interface{}, reply interface{}) error + func (this *AppService) Gotree(child interface{}) *AppService + func (this *AppService) InjectImpl(name string, service interface{}) + func (this *AppService) SessionGet(key string, value interface{}) error + func (this *AppService) SessionSet(key string, value interface{}) + func (this *AppService) Testing(coms ...string) + type AppTimer struct + func (this *AppTimer) Async(run func(ac AppAsync), completeds ...func()) + func (this *AppTimer) Gotree(child interface{}) *AppTimer + func (this *AppTimer) OpenTimer() + func (this *AppTimer) RegDay(hour, minute int, fun func()) + func (this *AppTimer) RegTick(ms int, fun func(), delay ...int) + type Application struct + func App() *Application + func (this *Application) AsyncNum() (result int) + func (this *Application) RegController(controller interface{}) + func (this *Application) RegTimer(service interface{}) + func (this *Application) RegisterService(child interface{}) + func (this *Application) ReqHeader(k string) string + func (this *Application) Run() + type ComApi struct + func (this *ComApi) Gotree(child interface{}) *ComApi + func (this *ComApi) HostAddr() string + func (this *ComApi) HttpGet(apiAddr string, args map[string]interface{}, callback ...Request) (result []byte, e error) + func (this *ComApi) HttpPost(apiAddr string, args map[string]interface{}, callback ...Request) (result []byte, e error) + func (this *ComApi) HttpPostJson(apiAddr string, raw interface{}, callback ...Request) (result []byte, e error) + func (this *ComApi) Testing() + type ComCache struct + func (this *ComCache) Connections(m map[string]int) + func (this *ComCache) DaoInit() + func (this *ComCache) Do(cmd string, args ...interface{}) (reply interface{}, e error) + func (this *ComCache) Gotree(child interface{}) *ComCache + func (this *ComCache) Testing() + type ComController struct + func (this *ComController) Api(child interface{}) + func (this *ComController) Cache(child interface{}) + func (this *ComController) Gotree(child interface{}) *ComController + func (this *ComController) Memory(child interface{}) + func (this *ComController) Model(child interface{}) + func (this *ComController) OnCreate(method string, argv interface{}) + func (this *ComController) OnDestory(method string, reply interface{}, e error) + func (this *ComController) Other(child interface{}) + func (this *ComController) Queue(name string, fun func() error) + func (this *ComController) Transaction(fun func() error) error + type ComMemory struct + func (this *ComMemory) AllKey() (result []interface{}) + func (this *ComMemory) DaoInit() + func (this *ComMemory) Delete(keys ...interface{}) + func (this *ComMemory) DeleteAll(key interface{}) + func (this *ComMemory) Expire(key interface{}, sec int) + func (this *ComMemory) Get(key, value interface{}) bool + func (this *ComMemory) Gotree(child interface{}) *ComMemory + func (this *ComMemory) Incr(key interface{}, addValue int64) (result int64, e error) + func (this *ComMemory) MemoryTimeout(now int64) + func (this *ComMemory) MultiSet(args ...interface{}) + func (this *ComMemory) MultiSetnx(args ...interface{}) bool + func (this *ComMemory) Set(key, value interface{}) + func (this *ComMemory) Setnx(key, value interface{}) bool + func (this *ComMemory) Testing() + type ComModel struct + func (this *ComModel) Conn() Conn + func (this *ComModel) Connections(m map[string]int) + func (this *ComModel) DaoInit() + func (this *ComModel) FormatIn(args ...interface{}) (list []interface{}) + func (this *ComModel) FormatMark(arg interface{}) string + func (this *ComModel) Gotree(child interface{}) *ComModel + func (this *ComModel) Testing() + type ComOther struct + func (this *ComOther) DaoInit() + func (this *ComOther) Gotree(child interface{}) *ComOther + func (this *ComOther) Testing() + type Conn interface + Raw func(query string, args ...interface{}) model.RawSeter + type DAO struct + func Dao() *DAO + func (this *DAO) Gotree() *DAO + func (this *DAO) RegApi(service interface{}) + func (this *DAO) RegCache(service interface{}) + func (this *DAO) RegController(controller interface{}) + func (this *DAO) RegMemory(service interface{}) + func (this *DAO) RegModel(service interface{}) + func (this *DAO) RegOther(service interface{}) + func (this *DAO) RegQueue(controller interface{}, queueName string, queueLen int, goroutine ...int) + func (this *DAO) Run(args ...interface{}) + type LogInter interface + Debug func(str ...interface{}) + Error func(str ...interface{}) + Notice func(str ...interface{}) + Warning func(str ...interface{}) + func Log() LogInter + type Request func(request *helper.HTTPRequest)