Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDBRedis ¶
func NewDBRedis(expiration int) dbRedis
Types ¶
type Config ¶
type Config struct { IdleSize int `json:"idle_size"` NetWork string `json:"network"` Address string `json:"address" required:"true"` Password string `json:"password" required:"true"` KeyPair string `json:"key_pair" required:"true"` DB int `json:"db"` Timeout int64 `json:"timeout"` DBCert string `json:"db_cert" required:"true"` }
func (*Config) SetDefault ¶
func (p *Config) SetDefault()
Click to show internal directories.
Click to hide internal directories.