mirror of https://github.com/mpolden/echoip
refactor module name to levelsoftware
This commit is contained in:
parent
532d22251b
commit
269bf95625
|
@ -2,4 +2,5 @@
|
|||
/custom.html
|
||||
/vendor/
|
||||
.vscode/
|
||||
.idea/
|
||||
/bin/
|
||||
|
|
|
@ -7,11 +7,11 @@ import (
|
|||
|
||||
"os"
|
||||
|
||||
"github.com/mpolden/echoip/http"
|
||||
"github.com/mpolden/echoip/iputil"
|
||||
"github.com/mpolden/echoip/iputil/geo"
|
||||
"github.com/mpolden/echoip/iputil/ipstack"
|
||||
parser "github.com/mpolden/echoip/iputil/paser"
|
||||
"github.com/levelsoftware/echoip/http"
|
||||
"github.com/levelsoftware/echoip/iputil"
|
||||
"github.com/levelsoftware/echoip/iputil/geo"
|
||||
"github.com/levelsoftware/echoip/iputil/ipstack"
|
||||
parser "github.com/levelsoftware/echoip/iputil/paser"
|
||||
ipstackApi "github.com/qioalice/ipstack"
|
||||
)
|
||||
|
||||
|
|
4
go.mod
4
go.mod
|
@ -1,9 +1,9 @@
|
|||
module github.com/mpolden/echoip
|
||||
module github.com/levelsoftware/echoip
|
||||
|
||||
go 1.13
|
||||
|
||||
require (
|
||||
github.com/oschwald/geoip2-golang v1.5.0
|
||||
github.com/qioalice/ipstack v1.0.1 // indirect
|
||||
github.com/qioalice/ipstack v1.0.1
|
||||
golang.org/x/sys v0.0.0-20210223212115-eede4237b368 // indirect
|
||||
)
|
||||
|
|
3
go.sum
3
go.sum
|
@ -9,16 +9,13 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
|
|||
github.com/qioalice/ipstack v1.0.1 h1:Ync2O+tR2AH9/TzTg4aeJxd9c1Xz2CeH1joECwnhvms=
|
||||
github.com/qioalice/ipstack v1.0.1/go.mod h1:6eB9LdNCUdUoOsfDB8Pn2GpmD2I+f2k3yR30ceuf/rY=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
golang.org/x/sys v0.0.0-20191224085550-c709ea063b76 h1:Dho5nD6R3PcW2SH1or8vS0dszDaXRxIw55lBX7XiE5g=
|
||||
golang.org/x/sys v0.0.0-20191224085550-c709ea063b76/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210223212115-eede4237b368 h1:fDE3p0qf2V1co1vfj3/o87Ps8Hq6QTGNxJ5Xe7xSp80=
|
||||
golang.org/x/sys v0.0.0-20210223212115-eede4237b368/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"net"
|
||||
"sync"
|
||||
|
||||
parser "github.com/mpolden/echoip/iputil/paser"
|
||||
parser "github.com/levelsoftware/echoip/iputil/paser"
|
||||
)
|
||||
|
||||
type Cache struct {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"net"
|
||||
"testing"
|
||||
|
||||
parser "github.com/mpolden/echoip/iputil/paser"
|
||||
parser "github.com/levelsoftware/echoip/iputil/paser"
|
||||
)
|
||||
|
||||
func TestCacheCapacity(t *testing.T) {
|
||||
|
|
|
@ -11,8 +11,8 @@ import (
|
|||
|
||||
"net/http/pprof"
|
||||
|
||||
parser "github.com/mpolden/echoip/iputil/paser"
|
||||
"github.com/mpolden/echoip/useragent"
|
||||
parser "github.com/levelsoftware/echoip/iputil/paser"
|
||||
"github.com/levelsoftware/echoip/useragent"
|
||||
|
||||
"net"
|
||||
"net/http"
|
||||
|
|
|
@ -11,9 +11,9 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/mpolden/echoip/iputil"
|
||||
"github.com/mpolden/echoip/iputil/geo"
|
||||
parser "github.com/mpolden/echoip/iputil/paser"
|
||||
"github.com/levelsoftware/echoip/iputil"
|
||||
"github.com/levelsoftware/echoip/iputil/geo"
|
||||
parser "github.com/levelsoftware/echoip/iputil/paser"
|
||||
)
|
||||
|
||||
func lookupAddr(net.IP) (string, error) { return "localhost", nil }
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"math"
|
||||
"net"
|
||||
|
||||
"github.com/mpolden/echoip/iputil"
|
||||
parser "github.com/mpolden/echoip/iputil/paser"
|
||||
"github.com/levelsoftware/echoip/iputil"
|
||||
parser "github.com/levelsoftware/echoip/iputil/paser"
|
||||
geoip2 "github.com/oschwald/geoip2-golang"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/mpolden/echoip/iputil"
|
||||
parser "github.com/mpolden/echoip/iputil/paser"
|
||||
"github.com/levelsoftware/echoip/iputil"
|
||||
parser "github.com/levelsoftware/echoip/iputil/paser"
|
||||
|
||||
"github.com/qioalice/ipstack"
|
||||
)
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"math/big"
|
||||
"net"
|
||||
|
||||
"github.com/mpolden/echoip/useragent"
|
||||
"github.com/levelsoftware/echoip/useragent"
|
||||
)
|
||||
|
||||
type Parser interface {
|
||||
|
|
Loading…
Reference in New Issue