config

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const CostInfinity = uint64(16)
View Source
const NlsrOrigin = uint64(mgmt.RouteOriginNLSR)

Variables

View Source
var SchemaBytes []byte

Functions

This section is empty.

Types

type Config

type Config struct {
	// Network should be the same for all routers in the network.
	Network string `json:"network"`
	// Router should be unique for each router in the network.
	Router string `json:"router"`
	// Period of sending Advertisement Sync Interests.
	AdvertisementSyncInterval_ms uint64 `json:"advertise_interval"`
	// Time after which a neighbor is considered dead.
	RouterDeadInterval_ms uint64 `json:"router_dead_interval"`
	// URI specifying KeyChain location.
	KeyChainUri string `json:"keychain"`
	// List of trust anchor full names.
	TrustAnchors []string `json:"trust_anchors"`
	// contains filtered or unexported fields
}

func DefaultConfig

func DefaultConfig() *Config

func (*Config) AdvertisementDataPrefix

func (c *Config) AdvertisementDataPrefix() enc.Name

func (*Config) AdvertisementSyncActivePrefix

func (c *Config) AdvertisementSyncActivePrefix() enc.Name

func (*Config) AdvertisementSyncInterval

func (c *Config) AdvertisementSyncInterval() time.Duration

func (*Config) AdvertisementSyncPassivePrefix

func (c *Config) AdvertisementSyncPassivePrefix() enc.Name

func (*Config) AdvertisementSyncPrefix

func (c *Config) AdvertisementSyncPrefix() enc.Name

func (*Config) MgmtPrefix added in v1.4.3

func (c *Config) MgmtPrefix() enc.Name

func (*Config) NetworkName

func (c *Config) NetworkName() enc.Name

func (*Config) Parse

func (c *Config) Parse() (err error)

func (*Config) PrefixTableDataPrefix

func (c *Config) PrefixTableDataPrefix() enc.Name

func (*Config) PrefixTableSyncPrefix

func (c *Config) PrefixTableSyncPrefix() enc.Name

func (*Config) RouterDataPrefix added in v1.4.3

func (c *Config) RouterDataPrefix() enc.Name

func (*Config) RouterDeadInterval

func (c *Config) RouterDeadInterval() time.Duration

func (*Config) RouterName

func (c *Config) RouterName() enc.Name

func (*Config) SchemaBytes added in v1.4.3

func (c *Config) SchemaBytes() []byte

func (*Config) TrustAnchorNames added in v1.4.3

func (c *Config) TrustAnchorNames() []enc.Name

Jump to

Keyboard shortcuts

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