mirror of
https://github.com/coredns/coredns.git
synced 2025-10-26 15:54:16 -04:00
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
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Package request abstracts a client's request so that all middleware
|
||||
// Package request abstracts a client's request so that all plugin
|
||||
// will handle them in an unified way.
|
||||
package request
|
||||
|
||||
@@ -6,12 +6,12 @@ import (
|
||||
"net"
|
||||
"strings"
|
||||
|
||||
"github.com/coredns/coredns/middleware/pkg/edns"
|
||||
"github.com/coredns/coredns/plugin/pkg/edns"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
// Request contains some connection state and is useful in middleware.
|
||||
// Request contains some connection state and is useful in plugin.
|
||||
type Request struct {
|
||||
Req *dns.Msg
|
||||
W dns.ResponseWriter
|
||||
|
||||
@@ -3,7 +3,7 @@ package request
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/coredns/coredns/middleware/test"
|
||||
"github.com/coredns/coredns/plugin/test"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user