aboutsummaryrefslogtreecommitdiff
path: root/plugin/autopath/autopath.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/autopath/autopath.go')
-rw-r--r--plugin/autopath/autopath.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/autopath/autopath.go b/plugin/autopath/autopath.go
index 2ca6c4df8..1a2e7a5ec 100644
--- a/plugin/autopath/autopath.go
+++ b/plugin/autopath/autopath.go
@@ -46,6 +46,12 @@ import (
// If Func returns a nil slice, no autopathing will be done.
type Func func(request.Request) []string
+// AutoPather defines the interface that a plugin should implement in order to be
+// used by AutoPath.
+type AutoPather interface {
+ AutoPath(request.Request) []string
+}
+
// AutoPath perform autopath: service side search path completion.
type AutoPath struct {
Next plugin.Handler