all: fix plugin import ordering (#1717)

Got a bit messed up with stb lib "context" usage.
This commit is contained in:
Miek Gieben 2018-04-22 08:34:35 +01:00 committed by GitHub
parent 69a956f052
commit 0930eb8beb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
87 changed files with 100 additions and 176 deletions

View file

@ -2,6 +2,7 @@
package auto
import (
"context"
"regexp"
"time"
@ -11,8 +12,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -32,13 +32,13 @@ func (m Plugins ) AutoPath(state request.Request) []string {
package autopath
import (
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/nonwriter"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package autopath
import (
"context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,12 +1,12 @@
package plugin
import (
"context"
"github.com/coredns/coredns/plugin/etcd/msg"
"github.com/coredns/coredns/request"
"github.com/miekg/dns"
"context"
)
// ServiceBackend defines a (dynamic) backend that returns a slice of service definitions.

View file

@ -1,11 +1,10 @@
package cache
import (
"context"
"testing"
"time"
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/response"
"github.com/coredns/coredns/plugin/test"

View file

@ -1,6 +1,7 @@
package cache
import (
"context"
"math"
"sync"
"time"
@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
"github.com/prometheus/client_golang/prometheus"
)

View file

@ -1,6 +1,7 @@
package cache
import (
"context"
"fmt"
"testing"
"time"
@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"context"
"github.com/coredns/coredns/plugin/test"
"github.com/miekg/dns"
)

View file

@ -1,13 +1,12 @@
package cache
import (
"context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"context"
"github.com/coredns/coredns/plugin/test"
"github.com/miekg/dns"
)

View file

@ -2,13 +2,12 @@
package chaos
import (
"context"
"os"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package chaos
import (
"context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,13 +1,12 @@
package dnssec
import (
"context"
"sync"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
"github.com/prometheus/client_golang/prometheus"
)

View file

@ -1,6 +1,7 @@
package dnssec
import (
"context"
"strings"
"testing"
@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,13 +1,12 @@
package dnstap
import (
"context"
"time"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/dnstap/taprw"
"context"
tap "github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
)

View file

@ -1,6 +1,7 @@
package dnstap
import (
"context"
"errors"
"net"
"strings"
@ -9,9 +10,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/dnstap/test"
mwtest "github.com/coredns/coredns/plugin/test"
"context"
tap "github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
)

View file

@ -1,13 +1,12 @@
package test
import (
"context"
"net"
"reflect"
"github.com/coredns/coredns/plugin/dnstap/msg"
"context"
tap "github.com/dnstap/golang-dnstap"
)

View file

@ -2,13 +2,12 @@
package erratic
import (
"context"
"sync/atomic"
"time"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,13 +1,12 @@
package erratic
import (
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -2,6 +2,7 @@
package errors
import (
"context"
"fmt"
"log"
"runtime"
@ -11,8 +12,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -2,6 +2,7 @@ package errors
import (
"bytes"
"context"
"errors"
"fmt"
"log"
@ -12,8 +13,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -2,6 +2,7 @@
package etcd
import (
"context"
"encoding/json"
"fmt"
"strings"
@ -13,8 +14,6 @@ import (
"github.com/coredns/coredns/plugin/proxy"
"github.com/coredns/coredns/request"
"context"
"github.com/coredns/coredns/plugin/pkg/upstream"
etcdc "github.com/coreos/etcd/client"
"github.com/miekg/dns"

View file

@ -1,12 +1,12 @@
package etcd
import (
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -3,6 +3,7 @@
package etcd
import (
"context"
"encoding/json"
"testing"
"time"
@ -14,8 +15,6 @@ import (
"github.com/coredns/coredns/plugin/proxy"
"github.com/coredns/coredns/plugin/test"
"context"
etcdc "github.com/coreos/etcd/client"
"github.com/miekg/dns"
)

View file

@ -1,6 +1,7 @@
package etcd
import (
"context"
"crypto/tls"
"github.com/coredns/coredns/core/dnsserver"
@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/coredns/coredns/plugin/proxy"
"context"
etcdc "github.com/coreos/etcd/client"
"github.com/mholt/caddy"
)

View file

@ -1,13 +1,12 @@
package etcd
import (
"context"
"errors"
"github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,11 +1,11 @@
package etcd
import (
"context"
"time"
"context"
"github.com/coredns/coredns/request"
"github.com/miekg/dns"
)

View file

@ -14,14 +14,14 @@ Federation is only useful in conjunction with the kubernetes plugin, without it
package federation
import (
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/etcd/msg"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/nonwriter"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package federation
import (
"context"
"testing"
"github.com/coredns/coredns/plugin/kubernetes"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,6 +1,7 @@
package file
import (
"context"
"strings"
"testing"
@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package file
import (
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package file
import (
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package file
import (
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package file
import (
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package file
import (
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -2,6 +2,7 @@
package file
import (
"context"
"fmt"
"io"
@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package file
import (
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package file
import (
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package file
import (
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package file
import (
"context"
"fmt"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -5,6 +5,7 @@
package forward
import (
"context"
"io"
"strconv"
"sync/atomic"
@ -12,8 +13,6 @@ import (
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -5,6 +5,7 @@
package forward
import (
"context"
"crypto/tls"
"errors"
"time"
@ -12,8 +13,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
ot "github.com/opentracing/opentracing-go"
)

View file

@ -1,6 +1,7 @@
package forward
import (
"context"
"sync/atomic"
"testing"
"time"
@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -5,10 +5,10 @@
package forward
import (
"github.com/coredns/coredns/request"
"context"
"github.com/coredns/coredns/request"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,14 @@
package hosts
import (
"net"
"context"
"net"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/fall"
"github.com/coredns/coredns/request"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package hosts
import (
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,12 +1,12 @@
package kubernetes
import (
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,13 +1,12 @@
package kubernetes
import (
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,13 +1,12 @@
package kubernetes
import (
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,13 +1,12 @@
package kubernetes
import (
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package kubernetes
import (
"context"
"testing"
"time"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
api "k8s.io/api/core/v1"
meta "k8s.io/apimachinery/pkg/apis/meta/v1"

View file

@ -1,13 +1,12 @@
package kubernetes
import (
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,13 +1,12 @@
package kubernetes
import (
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
api "k8s.io/api/core/v1"
meta "k8s.io/apimachinery/pkg/apis/meta/v1"

View file

@ -1,6 +1,7 @@
package kubernetes
import (
"context"
"math"
"net"
"strings"
@ -10,8 +11,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
api "k8s.io/api/core/v1"
)

View file

@ -1,11 +1,10 @@
package kubernetes
import (
"context"
"strings"
"testing"
"context"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
api "k8s.io/api/core/v1"

View file

@ -2,10 +2,10 @@
package loadbalance
import (
"github.com/coredns/coredns/plugin"
"context"
"github.com/coredns/coredns/plugin"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package loadbalance
import (
"context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -2,6 +2,7 @@
package log
import (
"context"
"log"
"time"
@ -13,8 +14,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/response"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -2,6 +2,7 @@ package log
import (
"bytes"
"context"
"log"
"strings"
"testing"
@ -10,8 +11,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/response"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,9 +1,9 @@
package metrics
import (
"github.com/coredns/coredns/plugin/metrics/vars"
"context"
"github.com/coredns/coredns/plugin/metrics/vars"
)
// WithServer returns the current server handling the request. It returns the

View file

@ -1,14 +1,14 @@
package metrics
import (
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/metrics/vars"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/pkg/rcode"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,6 +1,7 @@
package metrics
import (
"context"
"testing"
"github.com/coredns/coredns/plugin"
@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,13 +1,12 @@
package vars
import (
"context"
"time"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -2,12 +2,11 @@
package nsid
import (
"context"
"encoding/hex"
"github.com/coredns/coredns/plugin"
"context"
"github.com/miekg/dns"
)

View file

@ -1,6 +1,7 @@
package nsid
import (
"context"
"encoding/hex"
"testing"
@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/test"
"github.com/coredns/coredns/plugin/whoami"
"context"
"github.com/miekg/dns"
)

View file

@ -2,11 +2,11 @@
package fuzz
import (
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -2,11 +2,10 @@
package plugin
import (
"context"
"errors"
"fmt"
"context"
"github.com/miekg/dns"
ot "github.com/opentracing/opentracing-go"
"github.com/prometheus/client_golang/prometheus"

View file

@ -1,13 +1,12 @@
package proxy
import (
"context"
"net"
"time"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package proxy
import (
"context"
"time"
"github.com/coredns/coredns/plugin/dnstap"
"github.com/coredns/coredns/plugin/dnstap/msg"
"github.com/coredns/coredns/request"
"context"
tap "github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
)

View file

@ -1,6 +1,7 @@
package proxy
import (
"context"
"testing"
"time"
@ -9,8 +10,6 @@ import (
mwtest "github.com/coredns/coredns/plugin/test"
"github.com/coredns/coredns/request"
"context"
tap "github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
)

View file

@ -1,10 +1,10 @@
package proxy
import (
"github.com/coredns/coredns/request"
"context"
"github.com/coredns/coredns/request"
"github.com/miekg/dns"
)

View file

@ -1,6 +1,7 @@
package proxy
import (
"context"
"crypto/tls"
"encoding/json"
"fmt"
@ -14,8 +15,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,6 +1,7 @@
package proxy
import (
"context"
"crypto/tls"
"fmt"
@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/trace"
"github.com/coredns/coredns/request"
"context"
"github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc"
"github.com/miekg/dns"
opentracing "github.com/opentracing/opentracing-go"

View file

@ -1,6 +1,7 @@
package proxy
import (
"context"
"fmt"
"testing"
@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/test"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
"google.golang.org/grpc/grpclog"
)

View file

@ -3,6 +3,7 @@ package proxy
// functions other plugin might want to use to do lookup in the same style as the proxy.
import (
"context"
"fmt"
"net"
"sync/atomic"
@ -11,8 +12,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/healthcheck"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -2,6 +2,7 @@
package proxy
import (
"context"
"errors"
"fmt"
"net"
@ -13,8 +14,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/healthcheck"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
ot "github.com/opentracing/opentracing-go"
)

View file

@ -1,15 +1,13 @@
package reverse
import (
"context"
"net"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/fall"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,6 +1,7 @@
package reverse
import (
"context"
"net"
"regexp"
"testing"
@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package rewrite
import (
"context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -1,14 +1,13 @@
package rewrite
import (
"context"
"fmt"
"strings"
"github.com/coredns/coredns/plugin"
"github.com/miekg/dns"
"context"
)
// Result is the result of a rewrite

View file

@ -2,6 +2,7 @@ package rewrite
import (
"bytes"
"context"
"reflect"
"testing"
@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)

View file

@ -3,13 +3,12 @@
package route53
import (
"context"
"net"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/route53"
"github.com/aws/aws-sdk-go/service/route53/route53iface"

View file

@ -1,13 +1,12 @@
package route53
import (
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/route53"
"github.com/aws/aws-sdk-go/service/route53/route53iface"

View file

@ -2,6 +2,7 @@ package template
import (
"bytes"
"context"
"regexp"
"strconv"
gotmpl "text/template"
@ -11,8 +12,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,6 +1,7 @@
package template
import (
"context"
"fmt"
"regexp"
"testing"
@ -10,8 +11,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/fall"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/mholt/caddy"
"github.com/miekg/dns"
)

View file

@ -1,11 +1,10 @@
package test
import (
"context"
"sort"
"testing"
"context"
"github.com/miekg/dns"
)

View file

@ -2,6 +2,7 @@
package trace
import (
"context"
"fmt"
"strings"
"sync"
@ -11,8 +12,6 @@ import (
// Plugin the trace package.
_ "github.com/coredns/coredns/plugin/pkg/trace"
"context"
ddtrace "github.com/DataDog/dd-trace-go/opentracing"
"github.com/miekg/dns"
ot "github.com/opentracing/opentracing-go"

View file

@ -3,13 +3,12 @@
package whoami
import (
"context"
"net"
"strconv"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)

View file

@ -1,13 +1,12 @@
package whoami
import (
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)