complete renaming (fingers crossed)
This commit is contained in:
parent
40431e0823
commit
501f1dbc75
4
ldap.go
4
ldap.go
@ -33,7 +33,7 @@ type Ldap struct {
|
|||||||
|
|
||||||
// ServeDNS implements the plugin.Handler interface. This method gets called when ldap is used
|
// ServeDNS implements the plugin.Handler interface. This method gets called when ldap is used
|
||||||
// in a Server.
|
// 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
|
// 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.
|
// 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
|
// 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.
|
// 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.
|
// ResponsePrinter wrap a dns.ResponseWriter and will write ldap to standard output when WriteMsg is called.
|
||||||
type ResponsePrinter struct {
|
type ResponsePrinter struct {
|
||||||
|
2
ready.go
2
ready.go
@ -2,4 +2,4 @@ package ldap
|
|||||||
|
|
||||||
// Ready implements the ready.Readiness interface, once this flips to true CoreDNS
|
// Ready implements the ready.Readiness interface, once this flips to true CoreDNS
|
||||||
// assumes this plugin is ready for queries; it is not checked again.
|
// 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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user