Documentation
¶
Overview ¶
Package config contains the configuration of the path server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultQueryInterval = 5 * time.Minute DefaultCryptoSyncInterval = 30 * time.Second )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
General env.General
Features env.Features
Logging env.Logging
Metrics env.Metrics
Tracing env.Tracing
QUIC env.QUIC `toml:"quic"`
TrustDB truststorage.TrustDBConf
Discovery idiscovery.Config
PS PSConfig
}
func (*Config) ConfigName ¶
func (*Config) InitDefaults ¶
func (cfg *Config) InitDefaults()
type PSConfig ¶
type PSConfig struct {
// SegSync enables the "old" replication of down segments between cores,
// using SegSync messages.
SegSync bool
PathDB pathstorage.PathDBConf
RevCache pathstorage.RevCacheConf
// QueryInterval specifies after how much time segments
// for a destination should be refetched.
QueryInterval util.DurWrap
// CryptoSyncInterval specifies the interval of crypto pushes towards
// the local CS.
CryptoSyncInterval util.DurWrap
}
func (*PSConfig) ConfigName ¶
func (*PSConfig) InitDefaults ¶
func (cfg *PSConfig) InitDefaults()
Click to show internal directories.
Click to hide internal directories.