edns

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EDNS

type EDNS struct {
	// contains filtered or unexported fields
}

EDNS type.

func New

func New(cfg *config.Config) *EDNS

New return edns.

func (*EDNS) Name

func (e *EDNS) Name() string

(*EDNS).Name name return middleware name.

func (*EDNS) ServeDNS

func (e *EDNS) ServeDNS(ctx context.Context, ch *middleware.Chain)

(*EDNS).ServeDNS serveDNS implements the Handle interface.

type ResponseWriter added in v0.2.5

type ResponseWriter struct {
	middleware.ResponseWriter
	*EDNS
	// contains filtered or unexported fields
}

ResponseWriter implement of ctx.ResponseWriter.

func (*ResponseWriter) WriteMsg added in v0.2.5

func (w *ResponseWriter) WriteMsg(m *dns.Msg) error

(*ResponseWriter).WriteMsg writeMsg implements the ctx.ResponseWriter interface.

Jump to

Keyboard shortcuts

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