MCPcopy Create free account
hub / github.com/Permify/permify / HealthCheckPeriod

Function HealthCheckPeriod

pkg/database/postgres/options.go:65–69  ·  view source on GitHub ↗

HealthCheckPeriod - Defines the period between health checks on idle connections

(d time.Duration)

Source from the content-addressed store, hash-verified

63
64// HealthCheckPeriod - Defines the period between health checks on idle connections
65func 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
72func MaxConnectionLifetimeJitter(d time.Duration) Option {

Callers 1

postgres_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected