Documentation
¶
Overview ¶
Package postgres implements postgres connection.
Index ¶
- type Option
- func ConnAttempts(attempts int) Option
- func ConnTimeout(timeout time.Duration) Option
- func HealthCheckPeriod(period time.Duration) Option
- func MaxConnIdleTime(idleTime time.Duration) Option
- func MaxConnLifetime(lifetime time.Duration) Option
- func MaxPoolSize(size int) Option
- func MinPoolSize(size int) Option
- type Postgres
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct {
Builder squirrel.StatementBuilderType
Pool *pgxpool.Pool
// contains filtered or unexported fields
}
Postgres -.
func (*Postgres) GetPoolStats ¶
GetPoolStats returns connection pool statistics for monitoring
Click to show internal directories.
Click to hide internal directories.