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
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
Click to show internal directories.
Click to hide internal directories.