mirror of
https://github.com/joohoi/acme-dns.git
synced 2025-07-09 23:38:08 +07:00
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:
9
types.go
9
types.go
@ -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
|
||||
|
Reference in New Issue
Block a user