1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-23 00:00:07 +01:00
birdwatcher/bird/config.go
Benedikt Rudolph 46356aa9eb Make cache ttl for bird responses a config option
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.
2018-07-18 10:42:57 +02:00

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
}