edns

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 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

Name return middleware name

func (*EDNS) ServeDNS

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

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

WriteMsg implements the ctx.ResponseWriter interface

Jump to

Keyboard shortcuts

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