Refactoring DNS server part for safer paraller execution (#144)

* Refactoring DNS server part for safer paraller execution and better data structures

* Fix linter issues
This commit is contained in:
Joona Hoikkala
2019-02-03 17:23:04 +02:00
committed by GitHub
parent d695f72963
commit 7a2f9f06b1
5 changed files with 197 additions and 152 deletions

View File

@ -5,7 +5,6 @@ import (
"sync"
"github.com/google/uuid"
"github.com/miekg/dns"
)
// Config is global configuration struct
@ -14,14 +13,6 @@ var Config 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
}
// DNSConfig holds the config structure
type DNSConfig struct {
General general