mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-23 00:00:07 +01:00

For bird and bird6 you may add ttl to the respective config file sections. See example config in this commit. This allows to have individual ttls for the cache of bird cli output per daemon.
30 lines
779 B
Go
30 lines
779 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"`
|
|
CacheTtl int `toml:"ttl"`
|
|
}
|
|
|
|
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"`
|
|
}
|
|
|
|
type RateLimitConfig struct {
|
|
Reqs int
|
|
Max int `toml:"requests_per_minute"`
|
|
Enabled bool
|
|
}
|