Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnConfig ¶
type MySQLConfig ¶
type MySQLDateBaseConfig ¶
type MySQLDateBaseConfig struct { Master ConnConfig `json:"master"` Slave []ConnConfig `json:"slave"` }
type MysqlService ¶
type MysqlService struct {
// contains filtered or unexported fields
}
func (*MysqlService) GetDB ¶
func (s *MysqlService) GetDB(dbName string) (*xorm.EngineGroup, error)
func (*MysqlService) Init ¶
func (s *MysqlService) Init()
func (*MysqlService) Run ¶
func (s *MysqlService) Run(l logger.Interface, c *MySQLConfig) error
type RedisConfig ¶
type RedisConfig struct { MinIdleNum int `json:"min_idle_num"` PoolSize int `json:"pool_size"` DBMap map[string]ConnConfig `json:"db"` }
type RedisService ¶
type RedisService struct {
// contains filtered or unexported fields
}
func (*RedisService) Init ¶
func (s *RedisService) Init()
func (*RedisService) Run ¶
func (s *RedisService) Run(l logger.Interface, c *RedisConfig) error
Click to show internal directories.
Click to hide internal directories.