config

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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 (cfg *Config) ConfigName() string

func (*Config) InitDefaults

func (cfg *Config) InitDefaults()

func (*Config) Sample

func (cfg *Config) Sample(dst io.Writer, path config.Path, _ config.CtxMap)

func (*Config) Validate

func (cfg *Config) Validate() error

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 (cfg *PSConfig) ConfigName() string

func (*PSConfig) InitDefaults

func (cfg *PSConfig) InitDefaults()

func (*PSConfig) Sample

func (cfg *PSConfig) Sample(dst io.Writer, path config.Path, ctx config.CtxMap)

func (*PSConfig) Validate

func (cfg *PSConfig) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL