config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package config contains the configuration of sciond.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultQueryInterval = 5 * time.Minute
)

Functions

This section is empty.

Types

type Config

type Config struct {
	General  env.General              `toml:"general,omitempty"`
	Features env.Features             `toml:"features,omitempty"`
	Logging  log.Config               `toml:"log,omitempty"`
	Metrics  env.Metrics              `toml:"metrics,omitempty"`
	Tracing  env.Tracing              `toml:"tracing,omitempty"`
	TrustDB  truststorage.TrustDBConf `toml:"trust_db,omitempty"`
	// PathDB contains the configuration for the PathDB connection.
	PathDB pathstorage.PathDBConf `toml:"path_db,omitempty"`
	SD     SDConfig               `toml:"sd,omitempty"`
}

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 SDConfig

type SDConfig struct {
	// Address is the local address to listen on for SCION messages, and to send out messages to
	// other nodes.
	Address string `toml:"address,omitempty"`
	// QueryInterval specifies after how much time segments
	// for a destination should be refetched.
	QueryInterval util.DurWrap `toml:"query_interval,omitempty"`
}

func (*SDConfig) ConfigName

func (cfg *SDConfig) ConfigName() string

func (*SDConfig) InitDefaults

func (cfg *SDConfig) InitDefaults()

func (*SDConfig) Sample

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

func (*SDConfig) Validate

func (cfg *SDConfig) Validate() error

Jump to

Keyboard shortcuts

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