Documentation ¶ Index ¶ type ConfigRedis type Item type MySQL func New(cfg *ConfigRedis) *MySQL func (db *MySQL) Get(name string) (*conn, error) func (db *MySQL) Start() error func (db *MySQL) Stop() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ConfigRedis ¶ type ConfigRedis struct { DB []Item `yaml:"redis"` } type Item ¶ type Item struct { Name string `yaml:"name"` Host string `yaml:"host"` Port int `yaml:"port"` DB int `yaml:"db"` Passwd string `yaml:"passwd"` TTL int `yaml:"ttl"` Pool int `yaml:"pool"` } type MySQL ¶ added in v1.1.0 type MySQL struct { // contains filtered or unexported fields } func New ¶ func New(cfg *ConfigRedis) *MySQL func (*MySQL) Get ¶ added in v1.1.0 func (db *MySQL) Get(name string) (*conn, error) func (*MySQL) Start ¶ added in v1.1.0 func (db *MySQL) Start() error func (*MySQL) Stop ¶ added in v1.1.0 func (db *MySQL) Stop() error Source Files ¶ View all Source files config.goconn.goredis.go Click to show internal directories. Click to hide internal directories.