aboutsummaryrefslogtreecommitdiff
path: root/plugin/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/plugin.go')
-rw-r--r--plugin/plugin.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/plugin.go b/plugin/plugin.go
index a50f10830..2510dbaa6 100644
--- a/plugin/plugin.go
+++ b/plugin/plugin.go
@@ -104,3 +104,6 @@ const Namespace = "coredns"
// TimeBuckets is based on Prometheus client_golang prometheus.DefBuckets
var TimeBuckets = prometheus.ExponentialBuckets(0.00025, 2, 16) // from 0.25ms to 8 seconds
+
+// ErrOnce is returned when a plugin doesn't support multiple setups per server.
+var ErrOnce = errors.New("this plugin can only be used once per Server Block")