Documentation ¶ Index ¶ type ClassicClient func (client *ClassicClient) ExchangeContext(ctx context.Context, msg *dns.Msg, ip string) (*dns.Msg, time.Duration, error) type DOQClient func (c *DOQClient) ExchangeContext(ctx context.Context, msg *dns.Msg, addr string) (rsp *dns.Msg, rtt time.Duration, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ClassicClient ¶ type ClassicClient struct { Port string Client *dns.Client } func (*ClassicClient) ExchangeContext ¶ func (client *ClassicClient) ExchangeContext(ctx context.Context, msg *dns.Msg, ip string) (*dns.Msg, time.Duration, error) type DOQClient ¶ type DOQClient struct { Port string TLSConfig *tls.Config Timeout time.Duration } DOQClient represents the config options for setting up a DOQ based client. func (*DOQClient) ExchangeContext ¶ func (c *DOQClient) ExchangeContext(ctx context.Context, msg *dns.Msg, addr string) (rsp *dns.Msg, rtt time.Duration, err error) ExchangeContext sends msg to the address specified in addr (without port number). Source Files ¶ View all Source files classic.godoq.go Click to show internal directories. Click to hide internal directories.