pomerium/internal/registry/constants.go
2021-02-17 14:28:54 -05:00

22 lines
515 B
Go

package registry
import (
"errors"
"time"
)
const (
// callAfterTTLFactor will request to report back again after TTL/callAfterTTLFactor time
callAfterTTLFactor = 2
// purgeAfterTTLFactor will purge keys with TTL * purgeAfterTTLFactor time
purgeAfterTTLFactor = 1
// min reporting ttl
minTTL = time.Second
// path metrics are available at
defaultMetricsPath = "/metrics"
)
var (
errNoMetricsAddr = errors.New("no metrics address provided")
errNoMetricsPort = errors.New("no metrics port provided")
)