Support logging to dnstap in forward plugin (#2703)

This commit is contained in:
peiranliushop
2019-03-23 05:45:21 -04:00
committed by Miek Gieben
parent 0e137b23f1
commit 403d42ce20
4 changed files with 128 additions and 10 deletions

View File

@@ -1,7 +1,6 @@
package test
import (
"context"
"net"
"reflect"
@@ -10,12 +9,6 @@ import (
tap "github.com/dnstap/golang-dnstap"
)
// Context is a message trap.
type Context struct {
context.Context
TrapTapper
}
// TestingData returns the Data matching coredns/test.ResponseWriter.
func TestingData() (d *msg.Builder) {
d = &msg.Builder{