mirror of
https://github.com/TwiN/gatus.git
synced 2025-01-22 05:48:49 +01:00
Add missing comments
This commit is contained in:
parent
35c232d925
commit
f034bd15de
@ -11,6 +11,7 @@ import (
|
|||||||
var (
|
var (
|
||||||
// ErrDNSWithNoQueryName is the error with which gatus will panic if a dns is configured without query name
|
// 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")
|
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 is the error with which gatus will panic if a dns is configured with invalid query type
|
||||||
ErrDNSWithInvalidQueryType = errors.New("invalid query type")
|
ErrDNSWithInvalidQueryType = errors.New("invalid query type")
|
||||||
)
|
)
|
||||||
@ -19,9 +20,11 @@ const (
|
|||||||
dnsPort = 53
|
dnsPort = 53
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// DNS is the configuration for a Service of type DNS
|
||||||
type DNS struct {
|
type DNS struct {
|
||||||
// QueryType is the type for the DNS records like A, AAAA, CNAME...
|
// QueryType is the type for the DNS records like A, AAAA, CNAME...
|
||||||
QueryType string `yaml:"query-type"`
|
QueryType string `yaml:"query-type"`
|
||||||
|
|
||||||
// QueryName is the query for DNS
|
// QueryName is the query for DNS
|
||||||
QueryName string `yaml:"query-name"`
|
QueryName string `yaml:"query-name"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user