Documentation
¶
Overview ¶
by Iori 2022/1/4
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
InstanceID int `json:"InstanceId"`
Key string `json:"Key"`
IP string `json:"Ip"`
Port int `json:"Port"`
User string `json:"User"`
Password string `json:"Password"`
Description string `json:"Description"`
HealthSecond int `json:"HealthSecond"`
MaxPool int `json:"MaxPool"`
AutoClose bool `json:"AutoClose"`
MaxWaitSize int `json:"MaxWaitSize"`
}
ssdb config
type Ssdb ¶
type Ssdb struct {
Engine *pool.Connectors
}
func NewSsdbEngine ¶
func NewSsdbEngine() *Ssdb
func (*Ssdb) AddInstance ¶
func (self *Ssdb) AddInstance(sdc Config) (*pool.Connectors, error)
Click to show internal directories.
Click to hide internal directories.