refuse

package
v0.5.26 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

README

Name

refuse - refuse queries

Description

This is the guard handler that sits at the end of every handler stack. If returns refused for every query that ends up there. It is never needed to specify this handler in the configuration, it is added automatically.

Syntax

For documentation purposes the syntax is shown here.

refused

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Err added in v0.5.2

func Err(err error) slog.Attr

Types

type Refuse

type Refuse int

Refuse is a handler that returns refused, it use is to be the final handler, that is reached, returns refused.

func (*Refuse) Err

func (h *Refuse) Err(err error) error

func (*Refuse) HandlerFunc

func (r *Refuse) HandlerFunc(next dns.HandlerFunc) dns.HandlerFunc

func (*Refuse) Key

func (h *Refuse) Key() string

Jump to

Keyboard shortcuts

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