next

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package next allows to dns handlers be joined into chain

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(ctx context.Context) dnsutils.Handler

Handler returns next handler or tail

func NewDNSHandler

func NewDNSHandler(handlers ...dnsutils.Handler) dnsutils.Handler

NewDNSHandler creates a new chain of dns handlers

func NewWrappedDNSHandler added in v1.6.0

func NewWrappedDNSHandler(wrapper ServerWrapper, handlers ...dnsutils.Handler) dnsutils.Handler

NewWrappedDNSHandler - chains together the servers provides with the wrapper wrapped around each one in turn.

Types

type ServerWrapper added in v1.6.0

type ServerWrapper func(dnsutils.Handler) dnsutils.Handler

ServerWrapper - A function that wraps a dnsutils.Handler

Jump to

Keyboard shortcuts

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