12 lines
297 B
Go
12 lines
297 B
Go
|
|
package health
|
||
|
|
|
||
|
|
import "time"
|
||
|
|
|
||
|
|
// Config configures the health check handler.
|
||
|
|
// The zero value is valid — a 5-second check timeout is applied.
|
||
|
|
type Config struct {
|
||
|
|
CheckTimeout time.Duration `env:"EINHERJAR_HEALTH_CHECK_TIMEOUT" envDefault:"5s"`
|
||
|
|
}
|
||
|
|
|
||
|
|
const defaultCheckTimeout = 5 * time.Second
|