diff options
author | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:31:08 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-09-17 16:57:29 +0800 |
commit | ac088de6322fc16ebe75c2e5554be73754bf1fe2 (patch) | |
tree | 086b7827d46a4d07b834cd94be73beaabb77b734 /swarm/api/http | |
parent | 67d565f3f0e398e99bef96827f729e3e4b0edf31 (diff) | |
download | go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.gz go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.zst go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.zip |
Rebrand as tangerine-network/go-tangerine
Diffstat (limited to 'swarm/api/http')
-rw-r--r-- | swarm/api/http/middleware.go | 10 | ||||
-rw-r--r-- | swarm/api/http/response.go | 6 | ||||
-rw-r--r-- | swarm/api/http/roundtripper.go | 8 | ||||
-rw-r--r-- | swarm/api/http/sctx.go | 4 | ||||
-rw-r--r-- | swarm/api/http/server.go | 12 | ||||
-rw-r--r-- | swarm/api/http/server_test.go | 22 | ||||
-rw-r--r-- | swarm/api/http/templates.go | 2 | ||||
-rw-r--r-- | swarm/api/http/test_server.go | 6 |
8 files changed, 35 insertions, 35 deletions
diff --git a/swarm/api/http/middleware.go b/swarm/api/http/middleware.go index f6ff463bf..fee556fe5 100644 --- a/swarm/api/http/middleware.go +++ b/swarm/api/http/middleware.go @@ -7,12 +7,12 @@ import ( "strings" "time" - "github.com/dexon-foundation/dexon/metrics" - "github.com/dexon-foundation/dexon/swarm/api" - "github.com/dexon-foundation/dexon/swarm/log" - "github.com/dexon-foundation/dexon/swarm/sctx" - "github.com/dexon-foundation/dexon/swarm/spancontext" "github.com/pborman/uuid" + "github.com/tangerine-network/go-tangerine/metrics" + "github.com/tangerine-network/go-tangerine/swarm/api" + "github.com/tangerine-network/go-tangerine/swarm/log" + "github.com/tangerine-network/go-tangerine/swarm/sctx" + "github.com/tangerine-network/go-tangerine/swarm/spancontext" ) // Adapt chains h (main request handler) main handler to adapters (middleware handlers) diff --git a/swarm/api/http/response.go b/swarm/api/http/response.go index 3ffa78509..cbabb33b4 100644 --- a/swarm/api/http/response.go +++ b/swarm/api/http/response.go @@ -24,9 +24,9 @@ import ( "strings" "time" - "github.com/dexon-foundation/dexon/log" - "github.com/dexon-foundation/dexon/metrics" - "github.com/dexon-foundation/dexon/swarm/api" + "github.com/tangerine-network/go-tangerine/log" + "github.com/tangerine-network/go-tangerine/metrics" + "github.com/tangerine-network/go-tangerine/swarm/api" ) var ( diff --git a/swarm/api/http/roundtripper.go b/swarm/api/http/roundtripper.go index c62b5bab7..38ccdc10a 100644 --- a/swarm/api/http/roundtripper.go +++ b/swarm/api/http/roundtripper.go @@ -20,17 +20,17 @@ import ( "fmt" "net/http" - "github.com/dexon-foundation/dexon/swarm/log" + "github.com/tangerine-network/go-tangerine/swarm/log" ) /* http roundtripper to register for bzz url scheme -see https://github.com/dexon-foundation/dexon/issues/2040 +see https://github.com/tangerine-network/go-tangerine/issues/2040 Usage: import ( - "github.com/dexon-foundation/dexon/common/httpclient" - "github.com/dexon-foundation/dexon/swarm/api/http" + "github.com/tangerine-network/go-tangerine/common/httpclient" + "github.com/tangerine-network/go-tangerine/swarm/api/http" ) client := httpclient.New() // for (private) swarm proxy running locally diff --git a/swarm/api/http/sctx.go b/swarm/api/http/sctx.go index cde99b8a7..bbbcb60a2 100644 --- a/swarm/api/http/sctx.go +++ b/swarm/api/http/sctx.go @@ -3,8 +3,8 @@ package http import ( "context" - "github.com/dexon-foundation/dexon/swarm/api" - "github.com/dexon-foundation/dexon/swarm/sctx" + "github.com/tangerine-network/go-tangerine/swarm/api" + "github.com/tangerine-network/go-tangerine/swarm/sctx" ) type uriKey struct{} diff --git a/swarm/api/http/server.go b/swarm/api/http/server.go index 2055bda58..e413e48cf 100644 --- a/swarm/api/http/server.go +++ b/swarm/api/http/server.go @@ -35,13 +35,13 @@ import ( "strings" "time" - "github.com/dexon-foundation/dexon/common" - "github.com/dexon-foundation/dexon/metrics" - "github.com/dexon-foundation/dexon/swarm/api" - "github.com/dexon-foundation/dexon/swarm/log" - "github.com/dexon-foundation/dexon/swarm/storage" - "github.com/dexon-foundation/dexon/swarm/storage/feed" "github.com/rs/cors" + "github.com/tangerine-network/go-tangerine/common" + "github.com/tangerine-network/go-tangerine/metrics" + "github.com/tangerine-network/go-tangerine/swarm/api" + "github.com/tangerine-network/go-tangerine/swarm/log" + "github.com/tangerine-network/go-tangerine/swarm/storage" + "github.com/tangerine-network/go-tangerine/swarm/storage/feed" ) var ( diff --git a/swarm/api/http/server_test.go b/swarm/api/http/server_test.go index dbb86c200..6f8f296f7 100644 --- a/swarm/api/http/server_test.go +++ b/swarm/api/http/server_test.go @@ -37,17 +37,17 @@ import ( "testing" "time" - "github.com/dexon-foundation/dexon/swarm/storage/feed/lookup" - - "github.com/dexon-foundation/dexon/common" - "github.com/dexon-foundation/dexon/core/types" - "github.com/dexon-foundation/dexon/crypto" - "github.com/dexon-foundation/dexon/log" - "github.com/dexon-foundation/dexon/swarm/api" - swarm "github.com/dexon-foundation/dexon/swarm/api/client" - "github.com/dexon-foundation/dexon/swarm/storage" - "github.com/dexon-foundation/dexon/swarm/storage/feed" - "github.com/dexon-foundation/dexon/swarm/testutil" + "github.com/tangerine-network/go-tangerine/swarm/storage/feed/lookup" + + "github.com/tangerine-network/go-tangerine/common" + "github.com/tangerine-network/go-tangerine/core/types" + "github.com/tangerine-network/go-tangerine/crypto" + "github.com/tangerine-network/go-tangerine/log" + "github.com/tangerine-network/go-tangerine/swarm/api" + swarm "github.com/tangerine-network/go-tangerine/swarm/api/client" + "github.com/tangerine-network/go-tangerine/swarm/storage" + "github.com/tangerine-network/go-tangerine/swarm/storage/feed" + "github.com/tangerine-network/go-tangerine/swarm/testutil" ) func init() { diff --git a/swarm/api/http/templates.go b/swarm/api/http/templates.go index a37d7b03b..8106403a9 100644 --- a/swarm/api/http/templates.go +++ b/swarm/api/http/templates.go @@ -22,7 +22,7 @@ import ( "html/template" "path" - "github.com/dexon-foundation/dexon/swarm/api" + "github.com/tangerine-network/go-tangerine/swarm/api" ) type htmlListData struct { diff --git a/swarm/api/http/test_server.go b/swarm/api/http/test_server.go index 14de20c77..e4daa4be2 100644 --- a/swarm/api/http/test_server.go +++ b/swarm/api/http/test_server.go @@ -23,9 +23,9 @@ import ( "os" "testing" - "github.com/dexon-foundation/dexon/swarm/api" - "github.com/dexon-foundation/dexon/swarm/storage" - "github.com/dexon-foundation/dexon/swarm/storage/feed" + "github.com/tangerine-network/go-tangerine/swarm/api" + "github.com/tangerine-network/go-tangerine/swarm/storage" + "github.com/tangerine-network/go-tangerine/swarm/storage/feed" ) type TestServer interface { |