config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package config contains the configuration of the SCION dispatcher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Features   env.Features `toml:"features,omitempty"`
	Logging    log.Config   `toml:"log,omitempty"`
	Metrics    env.Metrics  `toml:"metrics,omitempty"`
	Dispatcher Dispatcher   `toml:"dispatcher,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 Dispatcher

type Dispatcher struct {
	// ID of the Dispatcher (required)
	ID string `toml:"id,omitempty"`
	// ApplicationSocket is the local API socket (default /run/shm/dispatcher/default.sock)
	ApplicationSocket string `toml:"application_socket,omitempty"`
	// Socket file permissions when created; read from octal. (default 0770)
	SocketFileMode util.FileMode `toml:"socket_file_mode,omitempty"`
	// UnderlayPort is the native port opened by the dispatcher (default 30041)
	UnderlayPort int `toml:"underlay_port,omitempty"`
	// DeleteSocket specifies whether the dispatcher should delete the
	// socket file prior to attempting to create a new one.
	DeleteSocket bool `toml:"delete_socket,omitempty"`
}

Dispatcher contains the dispatcher specific confing

Jump to

Keyboard shortcuts

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