conf

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package conf holds all of the global router state, for access by the router's various packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	// Topo contains the names of all local infrastructure elements, a map
	// of interface IDs to routers, and the actual topology.
	Topo *topology.Topo
	// IA is the current ISD-AS.
	IA addr.IA
	// BR is the topology information of this router.
	BR *topology.BRInfo
	// ASConf is the local AS configuration.
	ASConf *as_conf.ASConf
	// HFMacPool is the pool of Hop Field MAC generation instances.
	HFMacPool sync.Pool
	// Net is the network configuration of this router.
	Net *netconf.NetConf
	// Dir is the configuration directory.
	Dir string
}

Conf is the main config structure.

func Load

func Load(id, confDir string) (*Conf, error)

Load sets up the configuration, loading it from the supplied config directory.

Jump to

Keyboard shortcuts

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