Upstream is a mock [upstream.Upstream] implementation for tests. TODO(e.burkov): Move to golibs.
| 11 | // |
| 12 | // TODO(e.burkov): Move to golibs. |
| 13 | type Upstream struct { |
| 14 | OnAddress func() (addr string) |
| 15 | OnExchange func(req *dns.Msg) (resp *dns.Msg, err error) |
| 16 | OnClose func() (err error) |
| 17 | } |
| 18 | |
| 19 | // type check |
| 20 | var _ upstream.Upstream = (*Upstream)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected