client

package
v0.0.0-...-3ab8c1d Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Session quic.Connection
	Debug   bool
}

Client stores a DoQ client

func New

func New(c Config) (Client, error)

New constructs a new client

func (Client) Close

func (c Client) Close() error

Close closes a Client QUIC connection

func (Client) SendQuery

func (c Client) SendQuery(message dns.Msg) (dns.Msg, error)

SendQuery sends query over a new QUIC stream

type Config

type Config struct {
	Server        string
	TLSSkipVerify bool
	Compat        bool
	Debug         bool
}

Jump to

Keyboard shortcuts

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