mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 12:54:01 +03:00
support for test dc1-3
loading custom dc ips from config
This commit is contained in:
@@ -84,6 +84,17 @@ type tomlConfig struct {
|
||||
MetricPrefix string `toml:"metric-prefix" json:"metricPrefix,omitempty"`
|
||||
} `toml:"prometheus" json:"prometheus,omitempty"`
|
||||
} `toml:"stats" json:"stats,omitempty"`
|
||||
DCs struct{
|
||||
DC1 []string `toml:"dc1" json:"dc1,omitempty"`
|
||||
DC2 []string `toml:"dc2" json:"dc2,omitempty"`
|
||||
DC3 []string `toml:"dc3" json:"dc3,omitempty"`
|
||||
DC4 []string `toml:"dc4" json:"dc4,omitempty"`
|
||||
DC5 []string `toml:"dc5" json:"dc5,omitempty"`
|
||||
DC203 []string `toml:"dc203" json:"dc203,omitempty"`
|
||||
DC10001 []string `toml:"dc10001" json:"dc10001,omitempty"`
|
||||
DC10002 []string `toml:"dc10002" json:"dc10002,omitempty"`
|
||||
DC10003 []string `toml:"dc10003" json:"dc10003,omitempty"`
|
||||
} `toml:"dc" json:"dc,omitempty"`
|
||||
}
|
||||
|
||||
func Parse(rawData []byte) (*Config, error) {
|
||||
|
||||
Reference in New Issue
Block a user