Documentation
¶
Index ¶
- Variables
- func InstallRateLimitReset()
- func Run(args string) (io.Reader, error)
- type BirdConfig
- type Parsed
- func Protocols() (Parsed, bool)
- func ProtocolsBgp() (Parsed, bool)
- func RoutesDump() (Parsed, bool)
- func RoutesDumpPerPeerTable() (Parsed, bool)
- func RoutesDumpSingleTable() (Parsed, bool)
- func RoutesExport(protocol string) (Parsed, bool)
- func RoutesExportCount(protocol string) (Parsed, bool)
- func RoutesFiltered(protocol string) (Parsed, bool)
- func RoutesLookupProtocol(net string, protocol string) (Parsed, bool)
- func RoutesLookupTable(net string, table string) (Parsed, bool)
- func RoutesNoExport(protocol string) (Parsed, bool)
- func RoutesPeer(peer string) (Parsed, bool)
- func RoutesPrefixed(prefix string) (Parsed, bool)
- func RoutesProto(protocol string) (Parsed, bool)
- func RoutesProtoCount(protocol string) (Parsed, bool)
- func RoutesTable(table string) (Parsed, bool)
- func RoutesTableCount(table string) (Parsed, bool)
- func RunAndParse(cmd string, parser func(io.Reader) Parsed) (Parsed, bool)
- func Status() (Parsed, bool)
- func Symbols() (Parsed, bool)
- type ParserConfig
- type RateLimitConfig
- type StatusConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var Cache = struct { sync.RWMutex m map[string]Parsed }{/* contains filtered or unexported fields */}
View Source
var IPVersion = "4"
View Source
var RateLimitConf struct { sync.RWMutex Conf RateLimitConfig }
Functions ¶
func InstallRateLimitReset ¶
func InstallRateLimitReset()
Types ¶
type BirdConfig ¶
type BirdConfig struct {
Listen string
ConfigFilename string `toml:"config"`
BirdCmd string `toml:"birdc"`
}
var ClientConf BirdConfig
type Parsed ¶
type Parsed map[string]interface{}
func ProtocolsBgp ¶
func RoutesDump ¶
func RoutesDumpPerPeerTable ¶
func RoutesDumpSingleTable ¶
func RoutesExport ¶
func RoutesExportCount ¶
func RoutesFiltered ¶
func RoutesNoExport ¶
func RoutesPeer ¶
func RoutesPrefixed ¶
func RoutesProto ¶
func RoutesProtoCount ¶
func RoutesTable ¶
func RoutesTableCount ¶
type ParserConfig ¶
type ParserConfig struct {
FilterFields []string `toml:"filter_fields"`
PerPeerTables bool `toml:"per_peer_tables"`
PeerProtocolPrefix string `toml:"peer_protocol_prefix"`
PipeProtocolPrefix string `toml:"pipe_protocol_prefix"`
}
var (
ParserConf ParserConfig
)
type RateLimitConfig ¶
type StatusConfig ¶
type StatusConfig struct {
ReconfigTimestampSource string `toml:"reconfig_timestamp_source"`
ReconfigTimestampMatch string `toml:"reconfig_timestamp_match"`
FilterFields []string `toml:"filter_fields"`
}
var StatusConf StatusConfig
Click to show internal directories.
Click to hide internal directories.