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
87 changed files with 100 additions and 176 deletions

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"
)