goimports files

This commit is contained in:
Andrey Meshkov 2018-11-05 23:52:11 +03:00
parent efdd1c1ff2
commit 7f018234f6
7 changed files with 19 additions and 12 deletions

View File

@ -2,9 +2,10 @@ package upstream
import (
"crypto/tls"
"time"
"github.com/miekg/dns"
"golang.org/x/net/context"
"time"
)
// DnsUpstream is a very simple upstream implementation for plain DNS

View File

@ -1,10 +1,11 @@
package upstream
import (
"github.com/miekg/dns"
"golang.org/x/net/context"
"net"
"strings"
"github.com/miekg/dns"
"golang.org/x/net/context"
)
// Detects the upstream type from the specified url and creates a proper Upstream object

View File

@ -4,16 +4,17 @@ import (
"bytes"
"crypto/tls"
"fmt"
"github.com/miekg/dns"
"github.com/pkg/errors"
"golang.org/x/net/context"
"golang.org/x/net/http2"
"io/ioutil"
"log"
"net"
"net/http"
"net/url"
"time"
"github.com/miekg/dns"
"github.com/pkg/errors"
"golang.org/x/net/context"
"golang.org/x/net/http2"
)
const (

View File

@ -1,10 +1,11 @@
package upstream
import (
"log"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/mholt/caddy"
"log"
)
func init() {

View File

@ -1,8 +1,9 @@
package upstream
import (
"github.com/mholt/caddy"
"testing"
"github.com/mholt/caddy"
)
func TestSetup(t *testing.T) {

View File

@ -1,11 +1,12 @@
package upstream
import (
"time"
"github.com/coredns/coredns/plugin"
"github.com/miekg/dns"
"github.com/pkg/errors"
"golang.org/x/net/context"
"time"
)
const (

View File

@ -1,10 +1,11 @@
package upstream
import (
"github.com/miekg/dns"
"golang.org/x/net/context"
"net"
"testing"
"github.com/miekg/dns"
"golang.org/x/net/context"
)
func TestDnsUpstreamIsAlive(t *testing.T) {