mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-22 21:47:16 +02:00
in-memory service registry (#1892)
This commit is contained in:
parent
ee28f008b5
commit
d04416a5fd
13 changed files with 2081 additions and 1 deletions
22
internal/registry/constants.go
Normal file
22
internal/registry/constants.go
Normal file
|
@ -0,0 +1,22 @@
|
|||
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")
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue