Documentation ¶
Overview ¶
Package dnsproxytest provides a set of test utilities for the dnsproxy module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeUpstream ¶
type FakeUpstream struct { OnAddress func() (addr string) OnExchange func(req *dns.Msg) (resp *dns.Msg, err error) OnClose func() (err error) }
FakeUpstream is a fake [Upstream] implementation for tests.
TODO(e.burkov): Move this to the golibs?
func (*FakeUpstream) Address ¶
func (u *FakeUpstream) Address() (addr string)
Address implements the [Upstream] interface for *FakeUpstream.
func (*FakeUpstream) Close ¶
func (u *FakeUpstream) Close() (err error)
Close implements the [Upstream] interface for *FakeUpstream.
Click to show internal directories.
Click to hide internal directories.