mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
30 lines
739 B
Go
30 lines
739 B
Go
package bird
|
|
|
|
// Birdwatcher Birdc Configuration
|
|
|
|
type StatusConfig struct {
|
|
ReconfigTimestampSource string `toml:"reconfig_timestamp_source"`
|
|
ReconfigTimestampMatch string `toml:"reconfig_timestamp_match"`
|
|
|
|
FilterFields []string `toml:"filter_fields"`
|
|
}
|
|
|
|
type BirdConfig struct {
|
|
Listen string
|
|
ConfigFilename string `toml:"config"`
|
|
BirdCmd string `toml:"birdc"`
|
|
}
|
|
|
|
type ParserConfig struct {
|
|
FilterFields []string `toml:"filter_fields"`
|
|
|
|
PerPeerTables bool `toml:"per_peer_tables"`
|
|
PeerProtocolMatch string `toml:"peer_protocol_match"`
|
|
PipeProtocolTemplate string `toml:"pipe_protocol_template"`
|
|
}
|
|
|
|
type RateLimitConfig struct {
|
|
Reqs int
|
|
Max int `toml:"requests_per_minute"`
|
|
Enabled bool
|
|
}
|