aboutsummaryrefslogtreecommitdiff
path: root/request/request.go
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2018-02-14 15:11:26 -0500
committerGravatar Miek Gieben <miek@miek.nl> 2018-02-14 21:11:26 +0100
commit71ee323651ffed5d09aa22ea8d17eefbac2f6d08 (patch)
treec9fb894a5de2dc34dd14b66057856244d8b28203 /request/request.go
parentee8084a08f8cfcd4357ae2ad0b6dff51ca322d3a (diff)
downloadcoredns-71ee323651ffed5d09aa22ea8d17eefbac2f6d08.tar.gz
coredns-71ee323651ffed5d09aa22ea8d17eefbac2f6d08.tar.zst
coredns-71ee323651ffed5d09aa22ea8d17eefbac2f6d08.zip
plugin/kubernetes: Add upstream @self and loop count (#1484)
* add upstream @self and loop count * 1st round of feedback * allow argless upstream * update test * readmes * feedback
Diffstat (limited to 'request/request.go')
-rw-r--r--request/request.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/request/request.go b/request/request.go
index 9672edeb1..e2ff2008c 100644
--- a/request/request.go
+++ b/request/request.go
@@ -9,6 +9,7 @@ import (
"github.com/coredns/coredns/plugin/pkg/edns"
"github.com/miekg/dns"
+ "golang.org/x/net/context"
)
// Request contains some connection state and is useful in plugin.
@@ -19,6 +20,8 @@ type Request struct {
// Optional lowercased zone of this query.
Zone string
+ Context context.Context
+
// Cache size after first call to Size or Do.
size int
do int // 0: not, 1: true: 2: false