response

package
v0.0.0-...-b4cb883 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	dns.ResponseWriter
	Msg *dns.Msg
}

Reader implements ResponseWriter and exposes the message of the response.

func NewReader

func NewReader(w dns.ResponseWriter) *Reader

NewReader returns a new Reader

func (*Reader) WriteMsg

func (r *Reader) WriteMsg(response *dns.Msg) error

WriteMsg overrides ResponseWriter.WriteMsg

Jump to

Keyboard shortcuts

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