Logo
Explore Help
Sign In
Mirrors/coredns
1
0
Fork 0
You've already forked coredns
mirror of https://github.com/coredns/coredns.git synced 2025-11-05 03:33:12 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
06da7dcd986db4b8e3d1ec2ae230379ba76e1639
coredns/plugin/erratic/autopath.go

9 lines
253 B
Go
Raw Normal View History

mw/autopath: integration test with erratic (#930) Add integration test with erratic. For this erratic now also returns an autopath searchpath. This tests the whole chain; i.e registring a searchfunction and calling that from autopath. This tests does a autopathing domain and a non-autopathing one.
2017-08-18 12:57:23 +01:00
package erratic
import "github.com/coredns/coredns/request"
Remove the word middleware (#1067) * Rename middleware to plugin first pass; mostly used 'sed', few spots where I manually changed text. This still builds a coredns binary. * fmt error * Rename AddMiddleware to AddPlugin * Readd AddMiddleware to remain backwards compat
2017-09-14 09:36:06 +01:00
// AutoPath implements the AutoPathFunc call from the autopath plugin.
mw/autopath: integration test with erratic (#930) Add integration test with erratic. For this erratic now also returns an autopath searchpath. This tests the whole chain; i.e registring a searchfunction and calling that from autopath. This tests does a autopathing domain and a non-autopathing one.
2017-08-18 12:57:23 +01:00
func (e *Erratic) AutoPath(state request.Request) []string {
return []string{"a.example.org.", "b.example.org.", ""}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 79ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API