edns

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 5 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(dc *ctx.Context)

ServeDNS implements the Handle interface.

type ResponseWriter added in v0.2.5

type ResponseWriter struct {
	ctx.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