Documentation
¶
Index ¶
- Constants
- Variables
- func Author() string
- func License() string
- func Version() string
- type Provider
- func (c *Provider) ECSQuery(ctx context.Context, httpClient *http.Client, d dns.Domain, t dns.Type, ...) (*dns.Response, error)
- func (c *Provider) Query(ctx context.Context, httpClient *http.Client, d dns.Domain, t dns.Type) (*dns.Response, error)
- func (c *Provider) SetProvides(p int) error
- func (c *Provider) String() string
Constants ¶
View Source
const ( // DefaultProvides is default provides DefaultProvides = iota )
Variables ¶
View Source
var ( // Upstream is DoH query upstream Upstream = map[int]string{ DefaultProvides: "https://dns.google.com/resolve", } )
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a DoH provider client
func (*Provider) ECSQuery ¶
func (c *Provider) ECSQuery(ctx context.Context, httpClient *http.Client, d dns.Domain, t dns.Type, s dns.ECS) (*dns.Response, error)
ECSQuery do DoH query with the edns0-client-subnet option
func (*Provider) Query ¶
func (c *Provider) Query(ctx context.Context, httpClient *http.Client, d dns.Domain, t dns.Type) (*dns.Response, error)
Query do DoH query
func (*Provider) SetProvides ¶
SetProvides set upstream provides type, google does NOT supported
Click to show internal directories.
Click to hide internal directories.