dns

package
v0.0.0-...-4b634d0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRequest = errors.New("invalid request")

ErrInvalidRequest is an error raised when the request is invalid.

View Source
var ErrInvalidResponse = errors.New("invalid response")

ErrInvalidResponse is raised when the response is invalid.

Functions

This section is empty.

Types

type ExtendedMsg

type ExtendedMsg struct {
	dns.Msg
	Rcode int
}

ExtendedMsg wraps a dns.Msg with expectations.

type Tester

type Tester struct {
	Target   string
	Timeout  time.Duration
	Protocol string
	// contains filtered or unexported fields
}

Tester is a load tester for DNS.

func (*Tester) After

func (t *Tester) After(_ interface{})

After is called after all tests are finished.

func (*Tester) AfterEach

func (t *Tester) AfterEach(_ interface{})

AfterEach is called after every test.

func (*Tester) Before

func (t *Tester) Before(options interface{}) error

Before is called before the first test.

func (*Tester) BeforeEach

func (t *Tester) BeforeEach(_ interface{}) error

BeforeEach is called before every test.

func (*Tester) RequestExecutor

func (t *Tester) RequestExecutor(options interface{}) (bender.RequestExecutor, error)

RequestExecutor returns a request executor.

Jump to

Keyboard shortcuts

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