package
0.0.0-20190730192424-891f3ce14ace
Repository: https://github.com/csunetsec/bgpmon.git
Documentation: pkg.go.dev
# Functions
NewConfig reads a TOML file with the bgpmon configuration, sanity checks itand returns a bgpmondConfig struct which should satisfy the Configer interface,or an error.
NewEntityConfigFromJSONFile populates an entity config specified in the provided JSON file.
PutConfiguredNodes writes a node configuration in the TOML format to w.
SumNodeConfs combines two maps of NodeConfigs, preferring the first in case of overlap.
# Constants
These are the session types currently supported.
DefaultDBTimeoutSecs is the maximum lifetime for a DB operation defaults to 4 minutes.
DefaultRPCAddress is the default address:port for the RPC server.
DefaultRPCTimeoutSecs is the maximum lifetime for an RPC call defaults to 4 minutes.
DefaultSuggestedNodeFile is the file created by PutConfiguredNodes.
These are the session types currently supported.
# Structs
EntityConfig contains an entity that was specified in a configuration file.
ModuleConfig describes a module configuration.
NodeConfig describes a BGP node, either a collector or a peer.
# Interfaces
Configer describes the configuration for a bgpmond server.
SessionConfiger describes the configuration for a bgpmond session.