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:
parent
eac36f3773
commit
e463a05cd0
2 changed files with 12 additions and 5 deletions
|
@ -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"`
|
||||
}
|
||||
|
|
11
config.go
11
config.go
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue