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

added config option for per peer table setups

This commit is contained in:
Matthias Hannig 2017-05-29 09:31:47 +02:00
parent eac36f3773
commit e463a05cd0
2 changed files with 12 additions and 5 deletions

View file

@ -24,3 +24,9 @@ type RateLimitConfig struct {
Max int `toml:"requests_per_minute"`
Enabled bool
}
type PerPeerTablesConfig struct {
Enabled bool `toml:"enabled"`
PeerProtocolPrefix string `toml:"peer_protocol_prefix"`
PipeProtocolPrefix string `tomo:"pipe_protocol_prefix"`
}

View file

@ -17,11 +17,12 @@ import (
type Config struct {
Server endpoints.ServerConfig
Ratelimit bird.RateLimitConfig
Status bird.StatusConfig
Bird bird.BirdConfig
Bird6 bird.BirdConfig
Parser bird.ParserConfig
Ratelimit bird.RateLimitConfig
Status bird.StatusConfig
Bird bird.BirdConfig
Bird6 bird.BirdConfig
Parser bird.ParserConfig
PerPeerTables bird.PerPeerTablesConfig
}
// Try to load configfiles as specified in the files