Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClickHouseConfig ¶
type ClickHouseConfig struct {
Addr string
Username string
Password string
Database string
TLSEnabled bool
// MaxOpenConns sizes the connection pool; 0 uses the client default.
MaxOpenConns int
// DialTimeout bounds opening a connection and waiting for a free pooled
// one; 0 means 10s.
DialTimeout time.Duration
// ReadTimeout bounds waiting for a query's response; 0 means 30s.
ReadTimeout time.Duration
// IdleClose closes the connection pool after this long with no calls, so a
// quiet process doesn't keep connections that may have been dropped; the next
// call reconnects. 0 means 5m.
IdleClose time.Duration
}
Click to show internal directories.
Click to hide internal directories.