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 ¶
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) BeforeEach ¶
BeforeEach is called before every test.
func (*Tester) RequestExecutor ¶
func (t *Tester) RequestExecutor(options interface{}) (bender.RequestExecutor, error)
RequestExecutor returns a request executor.
Click to show internal directories.
Click to hide internal directories.