dnsclientpool

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(options *types.Options, configuration *Configuration) (*retryabledns.Client, error)

Get creates or gets a client for the protocol based on custom configuration

func Init

func Init(options *types.Options) error

Init initializes the client pool implementation

Types

type Configuration

type Configuration struct {
	// Retries contains the retries for the dns client
	Retries int
	// Resolvers contains the specific per request resolvers
	Resolvers []string
}

Configuration contains the custom configuration options for a client

func (*Configuration) Hash

func (c *Configuration) Hash() string

Hash returns the hash of the configuration to allow client pooling

Jump to

Keyboard shortcuts

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