Documentation ¶
Overview ¶
Package gins provides instances and core components management.
Index ¶
- func Config(name ...string) *gcfg.Config
- func Database(name ...string) gdb.DB
- func HttpClient(name ...interface{}) *gclient.Client
- func I18n(name ...string) *gi18n.Manager
- func Log(name ...string) *glog.Logger
- func Redis(name ...string) *gredis.Redis
- func Resource(name ...string) *gres.Resource
- func Server(name ...interface{}) *ghttp.Server
- func View(name ...string) *gview.View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Config ¶
Config returns an instance of View with default settings. The parameter `name` is the name for the instance.
func Database ¶
Database returns an instance of database ORM object with specified configuration group name. Note that it panics if any error occurs duration instance creating.
func HttpClient ¶
HttpClient returns an instance of http client with specified 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. Note that it panics if any error occurs duration instance creating.
func Redis ¶
Redis returns an instance of redis client with specified configuration group name. Note that it panics if any error occurs duration instance creating.
func Resource ¶
Resource returns an instance of Resource. The parameter `name` is the name for the instance.
Types ¶
This section is empty.