complete renaming (fingers crossed)

This commit is contained in:
David Arnold 2020-06-01 14:41:15 -05:00
parent 40431e0823
commit 501f1dbc75
No known key found for this signature in database
GPG Key ID: 6D6A936E69C59D08
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ type Ldap struct {
// ServeDNS implements the plugin.Handler interface. This method gets called when ldap is used
// in a Server.
func (e Ldap) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
func (l Ldap) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
// This function could be simpler. I.e. just fmt.Println("ldap") here, but we want to show
// a slightly more complex ldap as to make this more interesting.
// Here we wrap the dns.ResponseWriter in a new ResponseWriter and call the next plugin, when the
@ -53,7 +53,7 @@ func (e Ldap) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (i
}
// Name implements the Handler interface.
func (e Ldap) Name() string { return "ldap" }
func (l Ldap) Name() string { return "ldap" }
// ResponsePrinter wrap a dns.ResponseWriter and will write ldap to standard output when WriteMsg is called.
type ResponsePrinter struct {

View File

@ -2,4 +2,4 @@ package ldap
// Ready implements the ready.Readiness interface, once this flips to true CoreDNS
// assumes this plugin is ready for queries; it is not checked again.
func (e Ldap) Ready() bool { return true }
func (l Ldap) Ready() bool { return true }