1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00
birdwatcher/bird/config.go

31 lines
739 B
Go
Raw Permalink Normal View History

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 ParserConfig struct {
FilterFields []string `toml:"filter_fields"`
2017-05-29 09:34:38 +02:00
PerPeerTables bool `toml:"per_peer_tables"`
PeerProtocolMatch string `toml:"peer_protocol_match"`
PipeProtocolTemplate string `toml:"pipe_protocol_template"`
}
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
}