Moved global vars to types.go

This commit is contained in:
Joona Hoikkala 2016-11-28 13:13:45 +02:00
parent 74f160114b
commit 805c7dd2cf
No known key found for this signature in database
GPG Key ID: C14AAE0F5ADCB854
2 changed files with 9 additions and 9 deletions

View File

@ -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")

View File

@ -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