Documentation ¶
Index ¶
- func Cfg(name ...string) *gcfg.Config
- func Client() *ghttp.Client
- func Config(name ...string) *gcfg.Config
- func DB(name ...string) gdb.DB
- func Database(name ...string) gdb.DB
- func I18n(name ...string) *gi18n.Manager
- func Log(name ...string) *glog.Logger
- func Model(tables string, db ...string) *gdb.Model
- func Redis(name ...string) *gredis.Redis
- func Res(name ...string) *gres.Resource
- func Resource(name ...string) *gres.Resource
- func Server(name ...interface{}) *ghttp.Server
- func TCPServer(name ...interface{}) *gtcp.Server
- func Table(tables string, db ...string) *gdb.Model
- func UDPServer(name ...interface{}) *gudp.Server
- func View(name ...string) *gview.View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Database ¶
Database returns an instance of database ORM object with specified configuration group name.
func I18n ¶
I18n returns an instance of gi18n.Manager. The parameter <name> is the name for the instance.
func Log ¶
Log returns an instance of glog.Logger. The parameter <name> is the name for the instance.
func Model ¶
Model creates and returns a model from specified database or default database configuration. The optional parameter <db> specifies the configuration group name of the database, which is "default" in default.
func Resource ¶
Resource returns an instance of Resource. The parameter <name> is the name for the instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.