Documentation ¶
Index ¶
- type Dao
- func (dao *Dao) GetConfig() *redis.Options
- func (dao *Dao) OpenDB() *Dao
- func (dao *Dao) OpenDBWithPoolConns(active, idle int) *Dao
- func (dao *Dao) SetConfig(addr, pw string, db int) *Dao
- func (dao *Dao) SetDefaultModel(tb interface{}, deftultDataKey string) (err error)
- func (dao *Dao) SetOriginConfig(c *redis.Options) *Dao
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct { *redis.Client DaoStruct string DaoStructType reflect.Type DbNnum int DataKey string }
func (*Dao) OpenDBWithPoolConns ¶
OpenDBWithPoolConns : connect to db and set pool conns
func (*Dao) SetDefaultModel ¶
SetDefaultModel : register a table struct for this dao
Click to show internal directories.
Click to hide internal directories.