aboutsummaryrefslogtreecommitdiff
path: root/middleware/etcd/debug.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-11-29 09:54:57 +0000
committerGravatar GitHub <noreply@github.com> 2016-11-29 09:54:57 +0000
commit4cfd19c7c97490dac47cd748166ec3f976e315aa (patch)
tree333b9851d6c5c80a374bf1084d2e012402710a87 /middleware/etcd/debug.go
parenta1b9f96d876483b4356dddd83c24896d867e843c (diff)
downloadcoredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.tar.gz
coredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.tar.zst
coredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.zip
middleware/httpproxy: add debug queries (#446)
* middleware/httproxy: implement debug queries Not too useful at the moment, but o-o.debug queries are supported and return the Comment from dns.google.com. Note that this is not always set. * improve documentation * Testing cleanups
Diffstat (limited to 'middleware/etcd/debug.go')
-rw-r--r--middleware/etcd/debug.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/middleware/etcd/debug.go b/middleware/etcd/debug.go
deleted file mode 100644
index d2dd66830..000000000
--- a/middleware/etcd/debug.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package etcd
-
-import "strings"
-
-const debugName = "o-o.debug."
-
-// isDebug checks if name is a debugging name, i.e. starts with o-o.debug.
-// it return the empty string if it is not a debug message, otherwise it will return the
-// name with o-o.debug. stripped off. Must be called with name lowercased.
-func isDebug(name string) string {
- if len(name) == len(debugName) {
- return ""
- }
- name = strings.ToLower(name)
- debug := strings.HasPrefix(name, debugName)
- if !debug {
- return ""
- }
- return name[len(debugName):]
-}