From f034bd15de173c093d5793c6dbeba7751daedf80 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Sun, 29 Nov 2020 19:03:40 -0500 Subject: [PATCH] Add missing comments --- core/dns.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/dns.go b/core/dns.go index 444c8558..6afcf5e6 100644 --- a/core/dns.go +++ b/core/dns.go @@ -11,6 +11,7 @@ import ( var ( // ErrDNSWithNoQueryName is the error with which gatus will panic if a dns is configured without query name ErrDNSWithNoQueryName = errors.New("you must specify a query name for DNS") + // ErrDNSWithInvalidQueryType is the error with which gatus will panic if a dns is configured with invalid query type ErrDNSWithInvalidQueryType = errors.New("invalid query type") ) @@ -19,9 +20,11 @@ const ( dnsPort = 53 ) +// DNS is the configuration for a Service of type DNS type DNS struct { // QueryType is the type for the DNS records like A, AAAA, CNAME... QueryType string `yaml:"query-type"` + // QueryName is the query for DNS QueryName string `yaml:"query-name"` }