sdns: github.com/semihalev/sdns/middleware/edns Index | Files

package edns

import "github.com/semihalev/sdns/middleware/edns"

Index

Package Files

edns.go

type EDNS Uses

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

EDNS type

func New Uses

func New(cfg *config.Config) *EDNS

New return edns

func (*EDNS) Name Uses

func (e *EDNS) Name() string

Name return middleware name

func (*EDNS) ServeDNS Uses

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

ServeDNS implements the Handle interface.

type ResponseWriter Uses

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

ResponseWriter implement of ctx.ResponseWriter

func (*ResponseWriter) WriteMsg Uses

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

WriteMsg implements the ctx.ResponseWriter interface

Package edns imports 6 packages (graph) and is imported by 1 packages. Updated 2020-09-13. Refresh now. Tools for package owners.