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
Benedikt Rudolph 43b6a8b8dc Merge branch 'feature/api-redesign' into develop
* simplify RoutesNoExport() to just the birdc command
2019-02-06 08:54:21 +01:00

34 lines
801 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"`
}
type RateLimitConfig struct {
Reqs int
Max int `toml:"requests_per_minute"`
Enabled bool
}
type CacheConfig struct {
UseRedis bool `toml:"use_redis"`
RedisServer string `toml:"redis_server"`
RedisPassword string `toml:"redis_password"`
RedisDb int `toml:"redis_db"`
}