Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultProvider is default provider DefaultProvider = iota )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is DoH provider client
func (*Client) Query ¶
func (c *Client) Query(ctx context.Context, d dns.Domain, t dns.Type, s ...dns.ECS) (*dns.Response, error)
Query do DoH query with the edns0-client-subnet option
func (*Client) SetProvider ¶
SetProvider set upstream provider type, google does NOT supported
Click to show internal directories.
Click to hide internal directories.