From 71ee323651ffed5d09aa22ea8d17eefbac2f6d08 Mon Sep 17 00:00:00 2001 From: Chris O'Haver Date: Wed, 14 Feb 2018 15:11:26 -0500 Subject: 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 --- request/request.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'request/request.go') 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 -- cgit v1.2.3