mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 10:26:29 +02:00
22 lines
515 B
Go
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")
|
|
)
|