Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.1.4
type Client struct {
// contains filtered or unexported fields
}
func (*Client) WatchHeartbeat ¶ added in v1.1.4
func (c *Client) WatchHeartbeat()
WatchHeartbeat 监测心跳和重连.
type Mongo ¶ added in v1.3.2
type Mongo struct { // Uri mongo Uri example:"mongodb://localhost:27017" Uri string `json:"uri" yaml:"uri"` // Database 数据库 Database string `json:"database" yaml:"database"` // MaxOpenConnCount 最大连接数量 MaxOpenConnCount uint64 `json:"maxOpenConnCount" yaml:"maxOpenConnCount"` // MinOpenConnCount 最小连接数量 MinOpenConnCount uint64 `json:"minOpenConnCount" yaml:"minOpenConnCount"` // FreeMaxLifetime 闲置连接最大存活时间, 单位: 秒 FreeMaxLifetime int `yaml:"freeMaxLifetime" json:"freeMaxLifetime"` }
Click to show internal directories.
Click to hide internal directories.