chore: lint
Some checks reported errors
continuous-integration/drone/push Build is running
continuous-integration/drone/pr Build was killed

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-10-20 23:11:09 +02:00
parent 49f0033a92
commit 77f9d6a7a2
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD

View file

@ -18,8 +18,12 @@ type Options struct {
TLSHost string `json:"tlsHost" example:""`
// EDNS Options
EDNS
// HTTPS options :)
HTTPSOptions
// DNS request :)
Request Request
Request
// Verbosity levels, see [logawl.AllLevels]
Verbosity int `json:"-" example:"0"`
@ -53,7 +57,6 @@ type Options struct {
TLSNoVerify bool `json:"tlsNoVerify" example:"false"`
// Use DNS-over-HTTPS to make the query
HTTPS bool `json:"dnsOverHTTPS" example:"false"`
HTTPSOptions
// Use DNS-over-QUIC to make the query
//nolint:tagliatelle // QUIC is an acronym
QUIC bool `json:"dnsOverQUIC" example:"false"`
@ -66,13 +69,14 @@ type Options struct {
IPv6 bool `json:"forceIPv6" example:"false"`
}
// HTTPSOptions are options exclusively for DNS-over-HTTPS queries.
type HTTPSOptions struct {
// URL endpoint
Endpoint string `json:"endpoint" example:"/dns-query"`
// True, make GET request.
// False, make POST request.
Get bool `json:"get" example:"false"`
// URL endpoint
Endpoint string `json:"endpoint" example:"/dns-query"`
}
// HeaderFlags are the flags that are in DNS headers.