The HandlerFunc type is an adapter to allow the use of ordinary functions as [Handler]. If f is a function with the appropriate signature, HandlerFunc(f) is a [Handler] that calls f.
func(ctx context.Context, p *Proxy, dctx *DNSContext) (err error)
| 32 | // [Handler]. If f is a function with the appropriate signature, HandlerFunc(f) |
| 33 | // is a [Handler] that calls f. |
| 34 | type HandlerFunc func(ctx context.Context, p *Proxy, dctx *DNSContext) (err error) |
| 35 | |
| 36 | // type check |
| 37 | var _ Handler = HandlerFunc(nil) |
no outgoing calls
no test coverage detected
searching dependent graphs…