TestHandler is a mock request handler implementation to simplify testing. TODO(d.kolyshev): Move to internal/dnsproxytest.
| 7 | // |
| 8 | // TODO(d.kolyshev): Move to internal/dnsproxytest. |
| 9 | type TestHandler struct { |
| 10 | OnHandle func(ctx context.Context, p *Proxy, dctx *DNSContext) (err error) |
| 11 | } |
| 12 | |
| 13 | // type check |
| 14 | var _ Handler = (*TestHandler)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected