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
|
|
|
|
|
|
|
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
|
|
|
|
}
|