diff --git a/main.go b/main.go index 8d017b9..69d73cb 100644 --- a/main.go +++ b/main.go @@ -7,15 +7,6 @@ import ( "os" ) -// DNSConf is global configuration struct -var DNSConf DNSConfig - -// DB is used to access the database functions in acme-dns -var DB database - -// RR holds the static DNS records -var RR Records - func main() { // Read global config configTmp := readConfig("config.cfg") diff --git a/types.go b/types.go index 3ea3d38..f71baa2 100644 --- a/types.go +++ b/types.go @@ -7,6 +7,15 @@ import ( "sync" ) +// DNSConf is global configuration struct +var DNSConf DNSConfig + +// DB is used to access the database functions in acme-dns +var DB database + +// RR holds the static DNS records +var RR Records + // Records is for static records type Records struct { Records map[uint16]map[string][]dns.RR