Documentation ¶
Overview ¶
Package fanout sends incoming queries in parallel to few endpoints
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDNSHandler ¶
func NewDNSHandler(getAddressesFn GetAddressesFn) dnsutils.Handler
NewDNSHandler creates a new dns handler instance that sends incoming queries in parallel to few endpoints getAddressesFn gets endpoints for fanout
Types ¶
type GetAddressesFn ¶
GetAddressesFn is alias for urls getter function
func WithStaticAddresses ¶
func WithStaticAddresses(addresses ...url.URL) GetAddressesFn
WithStaticAddresses sets endpoints as static addresses
Click to show internal directories.
Click to hide internal directories.