config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package config contains the configuration of the SCION Daemon.

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"`
	API           api.Config         `toml:"api,omitempty"`
	Tracing       env.Tracing        `toml:"tracing,omitempty"`
	TrustDB       storage.DBConfig   `toml:"trust_db,omitempty"`
	PathDB        storage.DBConfig   `toml:"path_db,omitempty"`
	SD            SDConfig           `toml:"sd,omitempty"`
	TrustEngine   trustengine.Config `toml:"trustengine,omitempty"`
	DRKeyLevel2DB storage.DBConfig   `toml:"drkey_level2_db,omitempty"`
}

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"`
	// DisableSegVerification indicates that segment verification should be
	// disabled.
	DisableSegVerification bool `toml:"disable_seg_verification,omitempty"`
	// QueryInterval specifies after how much time segments
	// for a destination should be refetched.
	QueryInterval util.DurWrap `toml:"query_interval,omitempty"`
	// HiddenPathGroup is a file that contains the hiddenpath groups.
	// If HiddenPathGroups begins with http:// or https://, it will be fetched
	// over the network from the specified URL instead.
	HiddenPathGroups string `toml:"hidden_path_groups,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