New parameters in the config file

This commit is contained in:
Mael GRAMAIN 2021-01-03 15:17:01 -04:00
parent 78744ea1ac
commit 384ca40434
2 changed files with 10 additions and 0 deletions

View File

@ -22,3 +22,7 @@ Port = 6379
Password = ""
DB = 0
TTL = 10 #In seconds
[Dns]
XfrIPs = ["*"] #Array of slaves IPs
Nameservers = ["ns1.example.org", "ns2.example.org", "ns1.example.com"] #Arry of NS urls. (the first one is the master)

View File

@ -27,6 +27,12 @@ type Redis struct {
TTL int `ini:"TTL"`
}
//DNS : Struct for XFR and NS
type DNS struct {
XfrIPs []string
Nameservers []string
}
//Conf : Struct for the whole config.ini file when it will be parsed by go-ini
type Conf struct {
AppMode string `ini:"app_mode"`