2016-11-30 13:40:34 +01:00
|
|
|
package bird
|
|
|
|
|
|
|
|
// Birdwatcher Birdc Configuration
|
|
|
|
|
|
|
|
type StatusConfig struct {
|
|
|
|
ReconfigTimestampSource string `toml:"reconfig_timestamp_source"`
|
|
|
|
ReconfigTimestampMatch string `toml:"reconfig_timestamp_match"`
|
|
|
|
|
2016-12-02 17:11:57 +01:00
|
|
|
FilterFields []string `toml:"filter_fields"`
|
2016-11-30 13:40:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type BirdConfig struct {
|
|
|
|
Listen string
|
|
|
|
ConfigFilename string `toml:"config"`
|
|
|
|
BirdCmd string `toml:"birdc"`
|
|
|
|
}
|
2016-12-13 10:49:18 +01:00
|
|
|
|
2017-02-22 18:09:45 +01:00
|
|
|
type ParserConfig struct {
|
|
|
|
FilterFields []string `toml:"filter_fields"`
|
2017-05-29 09:34:38 +02:00
|
|
|
|
2017-07-14 15:48:46 +02:00
|
|
|
PerPeerTables bool `toml:"per_peer_tables"`
|
|
|
|
PeerProtocolMatch string `toml:"peer_protocol_match"`
|
|
|
|
PipeProtocolTemplate string `toml:"pipe_protocol_template"`
|
2017-02-22 18:09:45 +01:00
|
|
|
}
|
|
|
|
|
2016-12-13 10:49:18 +01:00
|
|
|
type RateLimitConfig struct {
|
2017-01-02 16:22:08 +01:00
|
|
|
Reqs int
|
2016-12-13 10:49:18 +01:00
|
|
|
Max int `toml:"requests_per_minute"`
|
|
|
|
Enabled bool
|
|
|
|
}
|