fanout

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

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

type GetAddressesFn = func() []url.URL

GetAddressesFn is alias for urls getter function

func WithStaticAddresses

func WithStaticAddresses(addresses ...url.URL) GetAddressesFn

WithStaticAddresses sets endpoints as static addresses

Jump to

Keyboard shortcuts

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