mirror of
https://github.com/joohoi/acme-dns.git
synced 2025-07-30 14:39:15 +07:00
Initial commit, PoC quality
This commit is contained in:
26
types.go
Normal file
26
types.go
Normal file
@ -0,0 +1,26 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
// Static records
|
||||
type Records struct {
|
||||
Records map[uint16]map[string][]dns.RR
|
||||
}
|
||||
|
||||
// Config file main struct
|
||||
type DnsConfig struct {
|
||||
General general
|
||||
}
|
||||
|
||||
// Config file general section
|
||||
type general struct {
|
||||
Domain string
|
||||
Nsname string
|
||||
Nsadmin string
|
||||
Tls string
|
||||
Tls_cert_privkey string
|
||||
Tls_cert_fullchain string
|
||||
StaticRecords []string `toml:"records"`
|
||||
}
|
Reference in New Issue
Block a user