Documentation ¶
Overview ¶
Package chpool is a connection pool for ch.
Index ¶
Constants ¶
View Source
const ( DefaultMaxConnLifetime = time.Hour DefaultMaxConnIdleTime = time.Minute * 30 DefaultHealthCheckPeriod = time.Minute )
Defaults for pool.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an acquired *ch.Client from a Pool.
type Options ¶
type Options struct { ClientOptions ch.Options MaxConnLifetime time.Duration MaxConnIdleTime time.Duration MaxConns int32 MinConns int32 HealthCheckPeriod time.Duration }
Options for Pool.
Click to show internal directories.
Click to hide internal directories.