test

package
v0.0.0-...-d4f9e80 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseWriter

type ResponseWriter struct {
	test.ResponseWriter
	// contains filtered or unexported fields
}

ResponseWriter extends test.ResponseWriter and record useful calls to methods.

func (*ResponseWriter) GetWriteMsgCallCount

func (t *ResponseWriter) GetWriteMsgCallCount() uint64

GetWriteMsgCallCount returns the number of WriteMsg calls that were made.

func (*ResponseWriter) WriteMsg

func (t *ResponseWriter) WriteMsg(_ *dns.Msg) error

WriteMsg implement dns.ResponseWriter interface.

type ResponseWriterCustomRemote

type ResponseWriterCustomRemote struct {
	ResponseWriter
	RemoteIP string
}

ResponseWriterCustomRemote is a ResponseWriter which can receive a custom remote address.

func (*ResponseWriterCustomRemote) RemoteAddr

func (t *ResponseWriterCustomRemote) RemoteAddr() net.Addr

RemoteAddr returns a net.Addr of the remote address connecting to the server.

Jump to

Keyboard shortcuts

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