Merge pull request #4 from bbusse/fix-compilation

Make necessary changes wrt imports to compile against CoreDNS git HEAD
This commit is contained in:
David Arnold 2021-02-11 09:12:31 -05:00 committed by GitHub
commit 56c09edd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -19,7 +19,7 @@ import (
"github.com/coredns/coredns/plugin/pkg/upstream" "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/miekg/dns" "github.com/miekg/dns"
"gopkg.in/ldap.v3" "github.com/go-ldap/ldap/v3"
) )
type ldapRecord struct { type ldapRecord struct {

View File

@ -6,13 +6,12 @@ import (
"sync" "sync"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/metrics" "github.com/prometheus/client_golang/prometheus"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/plugin/pkg/upstream" "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
) )
const pluginName = "ldap" const pluginName = "ldap"
@ -43,7 +42,7 @@ func setup(c *caddy.Controller) error {
c.OnStartup(func() error { c.OnStartup(func() error {
// add plugin-global metric once // add plugin-global metric once
once.Do(func() { once.Do(func() {
metrics.MustRegister(c, requestCount) prometheus.MustRegister(requestCount)
}) })
return nil return nil
}) })