HealthCheckPeriod - Defines the period between health checks on idle connections
(d time.Duration)
| 63 | |
| 64 | // HealthCheckPeriod - Defines the period between health checks on idle connections |
| 65 | func HealthCheckPeriod(d time.Duration) Option { |
| 66 | return func(p *Postgres) { |
| 67 | p.healthCheckPeriod = d |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | // MaxConnectionLifetimeJitter - Defines the jitter added to MaxConnLifetime to prevent all connections from expiring at once |
| 72 | func MaxConnectionLifetimeJitter(d time.Duration) Option { |