Documentation ¶
Index ¶
- type Client
- type ClientOption
- func WithBootstrap(resolver func(domain string) (net.IP, error)) ClientOption
- func WithDebug(debug bool) ClientOption
- func WithServer(server string) ClientOption
- func WithSocksProxy(getDialer func(d *net.Dialer) (proxy.Dialer, proxy.ContextDialer, error)) ClientOption
- func WithTimeout(t time.Duration) ClientOption
- type DoHServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ...ClientOption) *Client
type ClientOption ¶
type ClientOption func(*clientOptions) error
func WithBootstrap ¶ added in v1.0.1
func WithBootstrap(resolver func(domain string) (net.IP, error)) ClientOption
func WithDebug ¶
func WithDebug(debug bool) ClientOption
func WithServer ¶
func WithServer(server string) ClientOption
func WithSocksProxy ¶ added in v1.1.0
func WithSocksProxy(getDialer func(d *net.Dialer) (proxy.Dialer, proxy.ContextDialer, error)) ClientOption
func WithTimeout ¶
func WithTimeout(t time.Duration) ClientOption
Click to show internal directories.
Click to hide internal directories.