author | Alberto Bertogli
<albertito@blitiri.com.ar> 2016-05-22 21:12:52 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2016-05-22 21:12:52 UTC |
parent | 13a604e2749d845c54c49279f9675f2d1d860c55 |
dnss.go | +7 | -7 |
dnss_test.go | +3 | -3 |
{dnstox => internal/dnstox}/dnstox.go | +0 | -0 |
{dnstox => internal/dnstox}/resolver.go | +0 | -0 |
{grpctodns => internal/grpctodns}/grpctodns.go | +0 | -0 |
diff --git a/dnss.go b/dnss.go index 9c7d62a..58d9c5c 100644 --- a/dnss.go +++ b/dnss.go @@ -2,22 +2,22 @@ package main import ( "flag" + "net/http" "strings" "sync" "time" - // Register pprof handlers for monitoring and debugging. - "net/http" - _ "net/http/pprof" + "blitiri.com.ar/go/dnss/internal/dnstox" + "blitiri.com.ar/go/dnss/internal/grpctodns" "github.com/golang/glog" + "google.golang.org/grpc" + + // Register pprof handlers for monitoring and debugging. + _ "net/http/pprof" // Make GRPC log to glog. - "google.golang.org/grpc" _ "google.golang.org/grpc/grpclog/glogger" - - "blitiri.com.ar/go/dnss/dnstox" - "blitiri.com.ar/go/dnss/grpctodns" ) var ( diff --git a/dnss_test.go b/dnss_test.go index 2c37448..f7ca6d6 100644 --- a/dnss_test.go +++ b/dnss_test.go @@ -16,11 +16,11 @@ import ( "testing" "time" + "blitiri.com.ar/go/dnss/internal/dnstox" + "blitiri.com.ar/go/dnss/internal/grpctodns" + "github.com/golang/glog" "github.com/miekg/dns" - - "blitiri.com.ar/go/dnss/dnstox" - "blitiri.com.ar/go/dnss/grpctodns" ) const ( diff --git a/dnstox/dnstox.go b/internal/dnstox/dnstox.go similarity index 100% rename from dnstox/dnstox.go rename to internal/dnstox/dnstox.go diff --git a/dnstox/resolver.go b/internal/dnstox/resolver.go similarity index 100% rename from dnstox/resolver.go rename to internal/dnstox/resolver.go diff --git a/grpctodns/grpctodns.go b/internal/grpctodns/grpctodns.go similarity index 100% rename from grpctodns/grpctodns.go rename to internal/grpctodns/grpctodns.go