client

package
v0.0.0-...-45c970c Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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
}

Client handles DNS requests

func NewClient

func NewClient(logger *zap.SugaredLogger, conf *config.Config) (client *Client, err error)

NewClient returns a client with dnsClients

func (*Client) ListenAndServe

func (client *Client) ListenAndServe(addr []string) error

ListenAndServe listen on addresses and serve DNS service

func (*Client) Shutdown

func (client *Client) Shutdown() []error

Shutdown shuts down a server

func (*Client) ShutdownContext

func (client *Client) ShutdownContext(ctx context.Context) (errors []error)

ShutdownContext shuts down a server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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