next

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 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