Files
web/health/config.go
T

12 lines
297 B
Go
Raw Permalink Normal View History

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