google

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// DefaultProvider is default provider
	DefaultProvider = iota
)

Variables

This section is empty.

Functions

func Author

func Author() string

Author returns package author

func License

func License() string

License returns package license

func Version

func Version() string

Version returns package version

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is DoH provider client

func NewClient

func NewClient() *Client

NewClient returns a new 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

func (c *Client) SetProvider(p provider) error

SetProvider set upstream provider type, google does NOT supported

func (*Client) String

func (c *Client) String() string

String returns string of provider

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL