1 parent
de13d851a8
commit
a28362b82c
34 files changed
+1541
-341
No files matched your search
+51
-41
@@ -20,47 +20,51 @@ import (
|
||||
var assets embed.FS
|
||||
|
||||
type PageData struct {
|
||||
Status easydns.Status
|
||||
Health easydns.Health
|
||||
Stats easydns.Stats
|
||||
Cache easydns.Cache
|
||||
Zone easydns.Zone
|
||||
Zones []easydns.Zone
|
||||
Records []easydns.Record
|
||||
Record easydns.Record
|
||||
Pagination easydns.Pagination
|
||||
Transfers []easydns.Transfer
|
||||
Upstreams []easydns.UpstreamGroup
|
||||
Policies easydns.Policies
|
||||
Blocklists easydns.Blocklists
|
||||
Audit []easydns.AuditItem
|
||||
Query *easydns.QueryResult
|
||||
Form map[string]string
|
||||
Filter map[string]string
|
||||
ETag string
|
||||
ZoneURL string
|
||||
IsPrimary bool
|
||||
Error string
|
||||
Success string
|
||||
Action string
|
||||
Tab string
|
||||
FieldErrors map[string]string
|
||||
SamplingCount int
|
||||
SamplingTime time.Time
|
||||
SamplingError string
|
||||
LastRate string
|
||||
ServerProbes []multiserver.Probe
|
||||
Comparisons []multiserver.Comparison
|
||||
ManagedNode multiserver.Node
|
||||
CompareZone string
|
||||
PrimarySerial string
|
||||
ServerHealthy int
|
||||
MetricsMode string
|
||||
MetricNodes []FleetMetricsNode
|
||||
MetricTotals easydns.Stats
|
||||
MetricOnline int
|
||||
MetricTotal int
|
||||
MetricHasCache bool
|
||||
Status easydns.Status
|
||||
Health easydns.Health
|
||||
Stats easydns.Stats
|
||||
Cache easydns.Cache
|
||||
Zone easydns.Zone
|
||||
Zones []easydns.Zone
|
||||
Records []easydns.Record
|
||||
Record easydns.Record
|
||||
HideDNSSEC bool
|
||||
RecordsNextURL string
|
||||
RecordsPrevURL string
|
||||
Pagination easydns.Pagination
|
||||
Transfers []easydns.Transfer
|
||||
Upstreams []easydns.UpstreamGroup
|
||||
Policies easydns.Policies
|
||||
Blocklists easydns.Blocklists
|
||||
Audit []easydns.AuditItem
|
||||
Query *easydns.QueryResult
|
||||
Form map[string]string
|
||||
Filter map[string]string
|
||||
ETag string
|
||||
ZoneURL string
|
||||
IsPrimary bool
|
||||
Error string
|
||||
Success string
|
||||
Action string
|
||||
Tab string
|
||||
FieldErrors map[string]string
|
||||
SamplingCount int
|
||||
SamplingTime time.Time
|
||||
SamplingError string
|
||||
LastRate string
|
||||
RecentQueryRate *float64
|
||||
ServerProbes []multiserver.Probe
|
||||
Comparisons []multiserver.Comparison
|
||||
ManagedNode multiserver.Node
|
||||
CompareZone string
|
||||
PrimarySerial string
|
||||
ServerHealthy int
|
||||
MetricsMode string
|
||||
MetricNodes []FleetMetricsNode
|
||||
MetricTotals easydns.Stats
|
||||
MetricOnline int
|
||||
MetricTotal int
|
||||
MetricHasCache bool
|
||||
}
|
||||
type PageView struct {
|
||||
Title, Subtitle, Page, Active, Breadcrumb, User, CSRF, Message, MessageType string
|
||||
@@ -87,6 +91,12 @@ type Server struct {
|
||||
func funcs() template.FuncMap {
|
||||
return template.FuncMap{
|
||||
"asset": assetURL,
|
||||
"chart": func(id, title, description string) map[string]string {
|
||||
return map[string]string{"ID": id, "Title": title, "Description": description}
|
||||
},
|
||||
"filterRecordTypes": func() []string {
|
||||
return []string{"A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA", "DS", "DNSKEY", "RRSIG", "NSEC", "NSEC3", "NSEC3PARAM", "CDS", "CDNSKEY", "TLSA", "SSHFP", "NAPTR"}
|
||||
},
|
||||
"recordTypes": func() []string {
|
||||
return []string{"A", "AAAA", "CNAME", "MX", "TXT", "NS", "PTR", "SRV", "CAA", "DS", "DNSKEY", "TLSA", "SSHFP", "NAPTR"}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user