diff --git a/api.go b/api.go index 02edd9aa..3f68b27b 100644 --- a/api.go +++ b/api.go @@ -9,7 +9,7 @@ import ( "os" "strings" - "github.com/Shopify/toxiproxy/toxics" + "github.com/Shopify/toxiproxy/v2/toxics" "github.com/gorilla/mux" "github.com/sirupsen/logrus" ) diff --git a/api_test.go b/api_test.go index 306c49bf..51eef6f0 100644 --- a/api_test.go +++ b/api_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/Shopify/toxiproxy" - tclient "github.com/Shopify/toxiproxy/client" + "github.com/Shopify/toxiproxy/v2" + tclient "github.com/Shopify/toxiproxy/v2/client" ) var testServer *toxiproxy.ApiServer diff --git a/cli/cli.go b/cli/cli.go index a9c7f337..41c94d2a 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -7,8 +7,8 @@ import ( "strconv" "strings" - toxiproxyServer "github.com/Shopify/toxiproxy" - toxiproxy "github.com/Shopify/toxiproxy/client" + toxiproxyServer "github.com/Shopify/toxiproxy/v2" + toxiproxy "github.com/Shopify/toxiproxy/v2/client" "github.com/urfave/cli/v2" terminal "golang.org/x/term" ) diff --git a/cmd/toxiproxy.go b/cmd/toxiproxy.go index a1b5de75..8e8f0347 100644 --- a/cmd/toxiproxy.go +++ b/cmd/toxiproxy.go @@ -8,7 +8,7 @@ import ( "syscall" "time" - "github.com/Shopify/toxiproxy" + "github.com/Shopify/toxiproxy/v2" ) var ( diff --git a/go.mod b/go.mod index 5b6cca78..13e9e08a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/Shopify/toxiproxy +module github.com/Shopify/toxiproxy/v2 go 1.17 diff --git a/link.go b/link.go index 7a67ae16..86085254 100644 --- a/link.go +++ b/link.go @@ -3,8 +3,8 @@ package toxiproxy import ( "io" - "github.com/Shopify/toxiproxy/stream" - "github.com/Shopify/toxiproxy/toxics" + "github.com/Shopify/toxiproxy/v2/stream" + "github.com/Shopify/toxiproxy/v2/toxics" "github.com/sirupsen/logrus" ) diff --git a/link_test.go b/link_test.go index 0210366f..f95ef3a9 100644 --- a/link_test.go +++ b/link_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "github.com/Shopify/toxiproxy/stream" - "github.com/Shopify/toxiproxy/testhelper" - "github.com/Shopify/toxiproxy/toxics" + "github.com/Shopify/toxiproxy/v2/stream" + "github.com/Shopify/toxiproxy/v2/testhelper" + "github.com/Shopify/toxiproxy/v2/toxics" ) func TestToxicsAreLoaded(t *testing.T) { diff --git a/proxy.go b/proxy.go index 6c358f85..a32f50e5 100644 --- a/proxy.go +++ b/proxy.go @@ -5,7 +5,7 @@ import ( "net" "sync" - "github.com/Shopify/toxiproxy/stream" + "github.com/Shopify/toxiproxy/v2/stream" "github.com/sirupsen/logrus" tomb "gopkg.in/tomb.v1" ) diff --git a/proxy_collection_test.go b/proxy_collection_test.go index 5bffdeb5..b8e0e0ab 100644 --- a/proxy_collection_test.go +++ b/proxy_collection_test.go @@ -5,7 +5,7 @@ import ( "net" "testing" - "github.com/Shopify/toxiproxy" + "github.com/Shopify/toxiproxy/v2" ) func TestAddProxyToCollection(t *testing.T) { diff --git a/proxy_test.go b/proxy_test.go index 465b8821..a9c92af9 100644 --- a/proxy_test.go +++ b/proxy_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/Shopify/toxiproxy" + "github.com/Shopify/toxiproxy/v2" "github.com/sirupsen/logrus" tomb "gopkg.in/tomb.v1" ) diff --git a/toxic_collection.go b/toxic_collection.go index 3aded164..6bacd3b1 100644 --- a/toxic_collection.go +++ b/toxic_collection.go @@ -8,8 +8,8 @@ import ( "strings" "sync" - "github.com/Shopify/toxiproxy/stream" - "github.com/Shopify/toxiproxy/toxics" + "github.com/Shopify/toxiproxy/v2/stream" + "github.com/Shopify/toxiproxy/v2/toxics" ) // ToxicCollection contains a list of toxics that are chained together. Each proxy diff --git a/toxics/bandwidth.go b/toxics/bandwidth.go index f0dac05d..79e1f509 100644 --- a/toxics/bandwidth.go +++ b/toxics/bandwidth.go @@ -3,7 +3,7 @@ package toxics import ( "time" - "github.com/Shopify/toxiproxy/stream" + "github.com/Shopify/toxiproxy/v2/stream" ) // The BandwidthToxic passes data through at a limited rate diff --git a/toxics/bandwidth_test.go b/toxics/bandwidth_test.go index 95631c71..fbae3019 100644 --- a/toxics/bandwidth_test.go +++ b/toxics/bandwidth_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/Shopify/toxiproxy/toxics" + "github.com/Shopify/toxiproxy/v2/toxics" ) func TestBandwidthToxic(t *testing.T) { diff --git a/toxics/latency_test.go b/toxics/latency_test.go index 5da5384a..b0cd020e 100644 --- a/toxics/latency_test.go +++ b/toxics/latency_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "github.com/Shopify/toxiproxy" - "github.com/Shopify/toxiproxy/toxics" + "github.com/Shopify/toxiproxy/v2" + "github.com/Shopify/toxiproxy/v2/toxics" ) func AssertDeltaTime(t *testing.T, message string, actual, expected, delta time.Duration) { diff --git a/toxics/limit_data.go b/toxics/limit_data.go index 217dcddf..3e456942 100644 --- a/toxics/limit_data.go +++ b/toxics/limit_data.go @@ -1,6 +1,6 @@ package toxics -import "github.com/Shopify/toxiproxy/stream" +import "github.com/Shopify/toxiproxy/v2/stream" // LimitDataToxic has limit in bytes type LimitDataToxic struct { diff --git a/toxics/limit_data_test.go b/toxics/limit_data_test.go index 50b3572d..201c9f97 100644 --- a/toxics/limit_data_test.go +++ b/toxics/limit_data_test.go @@ -6,8 +6,8 @@ import ( "fmt" "testing" - "github.com/Shopify/toxiproxy/stream" - "github.com/Shopify/toxiproxy/toxics" + "github.com/Shopify/toxiproxy/v2/stream" + "github.com/Shopify/toxiproxy/v2/toxics" ) func buffer(size int) []byte { diff --git a/toxics/slicer.go b/toxics/slicer.go index dd4e05a6..12c7c33f 100644 --- a/toxics/slicer.go +++ b/toxics/slicer.go @@ -4,7 +4,7 @@ import ( "math/rand" "time" - "github.com/Shopify/toxiproxy/stream" + "github.com/Shopify/toxiproxy/v2/stream" ) // The SlicerToxic slices data into multiple smaller packets diff --git a/toxics/slicer_test.go b/toxics/slicer_test.go index b457be77..3a2a2c09 100644 --- a/toxics/slicer_test.go +++ b/toxics/slicer_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/Shopify/toxiproxy/stream" - "github.com/Shopify/toxiproxy/toxics" + "github.com/Shopify/toxiproxy/v2/stream" + "github.com/Shopify/toxiproxy/v2/toxics" ) func TestSlicerToxic(t *testing.T) { diff --git a/toxics/timeout_test.go b/toxics/timeout_test.go index 43646cb5..01656e93 100644 --- a/toxics/timeout_test.go +++ b/toxics/timeout_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/Shopify/toxiproxy" - "github.com/Shopify/toxiproxy/testhelper" - "github.com/Shopify/toxiproxy/toxics" + "github.com/Shopify/toxiproxy/v2" + "github.com/Shopify/toxiproxy/v2/testhelper" + "github.com/Shopify/toxiproxy/v2/toxics" ) func WithEstablishedProxy(t *testing.T, f func(net.Conn, net.Conn, *toxiproxy.Proxy)) { diff --git a/toxics/toxic.go b/toxics/toxic.go index 5d66ac29..c4b280d5 100644 --- a/toxics/toxic.go +++ b/toxics/toxic.go @@ -5,7 +5,7 @@ import ( "reflect" "sync" - "github.com/Shopify/toxiproxy/stream" + "github.com/Shopify/toxiproxy/v2/stream" ) // A Toxic is something that can be attatched to a link to modify the way diff --git a/toxics/toxic_test.go b/toxics/toxic_test.go index 93b25295..6e20ad79 100644 --- a/toxics/toxic_test.go +++ b/toxics/toxic_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "github.com/Shopify/toxiproxy" - "github.com/Shopify/toxiproxy/toxics" + "github.com/Shopify/toxiproxy/v2" + "github.com/Shopify/toxiproxy/v2/toxics" "github.com/sirupsen/logrus" tomb "gopkg.in/tomb.v1" )