mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
moved to parser config
This commit is contained in:
parent
ecd2e1546c
commit
007436ebc2
2 changed files with 9 additions and 12 deletions
|
@ -17,6 +17,10 @@ type BirdConfig struct {
|
|||
|
||||
type ParserConfig struct {
|
||||
FilterFields []string `toml:"filter_fields"`
|
||||
|
||||
PerPeerTables bool `toml:"per_peer_tables"`
|
||||
PeerProtocolPrefix string `toml:"peer_protocol_prefix"`
|
||||
PipeProtocolPrefix string `tomo:"pipe_protocol_prefix"`
|
||||
}
|
||||
|
||||
type RateLimitConfig struct {
|
||||
|
@ -24,9 +28,3 @@ 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,12 +17,11 @@ import (
|
|||
type Config struct {
|
||||
Server endpoints.ServerConfig
|
||||
|
||||
Ratelimit bird.RateLimitConfig
|
||||
Status bird.StatusConfig
|
||||
Bird bird.BirdConfig
|
||||
Bird6 bird.BirdConfig
|
||||
Parser bird.ParserConfig
|
||||
PerPeerTables bird.PerPeerTablesConfig
|
||||
Ratelimit bird.RateLimitConfig
|
||||
Status bird.StatusConfig
|
||||
Bird bird.BirdConfig
|
||||
Bird6 bird.BirdConfig
|
||||
Parser bird.ParserConfig
|
||||
}
|
||||
|
||||
// Try to load configfiles as specified in the files
|
||||
|
|
Loading…
Add table
Reference in a new issue