From 805c7dd2cfc7c58445bb1480ab65e848bed61d5e Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Mon, 28 Nov 2016 13:13:45 +0200 Subject: [PATCH] Moved global vars to types.go --- main.go | 9 --------- types.go | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) 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