aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api
diff options
context:
space:
mode:
authorWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:31:08 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-09-17 16:57:29 +0800
commitac088de6322fc16ebe75c2e5554be73754bf1fe2 (patch)
tree086b7827d46a4d07b834cd94be73beaabb77b734 /swarm/api
parent67d565f3f0e398e99bef96827f729e3e4b0edf31 (diff)
downloadgo-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar
go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.gz
go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.bz2
go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.lz
go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.xz
go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.zst
go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.zip
Rebrand as tangerine-network/go-tangerine
Diffstat (limited to 'swarm/api')
-rw-r--r--swarm/api/act.go12
-rw-r--r--swarm/api/api.go18
-rw-r--r--swarm/api/api_test.go10
-rw-r--r--swarm/api/client/client.go10
-rw-r--r--swarm/api/client/client_test.go16
-rw-r--r--swarm/api/config.go20
-rw-r--r--swarm/api/config_test.go4
-rw-r--r--swarm/api/encrypt.go2
-rw-r--r--swarm/api/filesystem.go6
-rw-r--r--swarm/api/filesystem_test.go4
-rw-r--r--swarm/api/gen_mime.go2
-rw-r--r--swarm/api/http/middleware.go10
-rw-r--r--swarm/api/http/response.go6
-rw-r--r--swarm/api/http/roundtripper.go8
-rw-r--r--swarm/api/http/sctx.go4
-rw-r--r--swarm/api/http/server.go12
-rw-r--r--swarm/api/http/server_test.go22
-rw-r--r--swarm/api/http/templates.go2
-rw-r--r--swarm/api/http/test_server.go6
-rw-r--r--swarm/api/inspector.go4
-rw-r--r--swarm/api/manifest.go8
-rw-r--r--swarm/api/manifest_test.go2
-rw-r--r--swarm/api/storage.go2
-rw-r--r--swarm/api/uri.go4
-rw-r--r--swarm/api/uri_test.go2
25 files changed, 98 insertions, 98 deletions
diff --git a/swarm/api/act.go b/swarm/api/act.go
index 81badfe8f..a82f488e3 100644
--- a/swarm/api/act.go
+++ b/swarm/api/act.go
@@ -12,12 +12,12 @@ import (
"strings"
"time"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/crypto/ecies"
- "github.com/dexon-foundation/dexon/swarm/log"
- "github.com/dexon-foundation/dexon/swarm/sctx"
- "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/crypto/ecies"
+ "github.com/tangerine-network/go-tangerine/swarm/log"
+ "github.com/tangerine-network/go-tangerine/swarm/sctx"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
"golang.org/x/crypto/scrypt"
"golang.org/x/crypto/sha3"
cli "gopkg.in/urfave/cli.v1"
diff --git a/swarm/api/api.go b/swarm/api/api.go
index 1f5109822..11acc458d 100644
--- a/swarm/api/api.go
+++ b/swarm/api/api.go
@@ -37,15 +37,15 @@ import (
"path/filepath"
"time"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/contracts/ens"
- "github.com/dexon-foundation/dexon/core/types"
- "github.com/dexon-foundation/dexon/metrics"
- "github.com/dexon-foundation/dexon/swarm/log"
- "github.com/dexon-foundation/dexon/swarm/spancontext"
- "github.com/dexon-foundation/dexon/swarm/storage"
- "github.com/dexon-foundation/dexon/swarm/storage/feed"
- "github.com/dexon-foundation/dexon/swarm/storage/feed/lookup"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/contracts/ens"
+ "github.com/tangerine-network/go-tangerine/core/types"
+ "github.com/tangerine-network/go-tangerine/metrics"
+ "github.com/tangerine-network/go-tangerine/swarm/log"
+ "github.com/tangerine-network/go-tangerine/swarm/spancontext"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/swarm/storage/feed"
+ "github.com/tangerine-network/go-tangerine/swarm/storage/feed/lookup"
opentracing "github.com/opentracing/opentracing-go"
)
diff --git a/swarm/api/api_test.go b/swarm/api/api_test.go
index 2e573b9d0..a977041c2 100644
--- a/swarm/api/api_test.go
+++ b/swarm/api/api_test.go
@@ -28,11 +28,11 @@ import (
"os"
"testing"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/core/types"
- "github.com/dexon-foundation/dexon/log"
- "github.com/dexon-foundation/dexon/swarm/sctx"
- "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/core/types"
+ "github.com/tangerine-network/go-tangerine/log"
+ "github.com/tangerine-network/go-tangerine/swarm/sctx"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
)
func init() {
diff --git a/swarm/api/client/client.go b/swarm/api/client/client.go
index 8eb643c27..ac57ec136 100644
--- a/swarm/api/client/client.go
+++ b/swarm/api/client/client.go
@@ -37,12 +37,12 @@ import (
"strings"
"time"
- "github.com/dexon-foundation/dexon/log"
- "github.com/dexon-foundation/dexon/metrics"
- "github.com/dexon-foundation/dexon/swarm/api"
- "github.com/dexon-foundation/dexon/swarm/spancontext"
- "github.com/dexon-foundation/dexon/swarm/storage/feed"
"github.com/pborman/uuid"
+ "github.com/tangerine-network/go-tangerine/log"
+ "github.com/tangerine-network/go-tangerine/metrics"
+ "github.com/tangerine-network/go-tangerine/swarm/api"
+ "github.com/tangerine-network/go-tangerine/swarm/spancontext"
+ "github.com/tangerine-network/go-tangerine/swarm/storage/feed"
)
var (
diff --git a/swarm/api/client/client_test.go b/swarm/api/client/client_test.go
index 6a4cd4dab..714f13339 100644
--- a/swarm/api/client/client_test.go
+++ b/swarm/api/client/client_test.go
@@ -25,14 +25,14 @@ import (
"sort"
"testing"
- "github.com/dexon-foundation/dexon/swarm/storage"
- "github.com/dexon-foundation/dexon/swarm/storage/feed/lookup"
-
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/swarm/api"
- swarmhttp "github.com/dexon-foundation/dexon/swarm/api/http"
- "github.com/dexon-foundation/dexon/swarm/storage/feed"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/swarm/storage/feed/lookup"
+
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/swarm/api"
+ swarmhttp "github.com/tangerine-network/go-tangerine/swarm/api/http"
+ "github.com/tangerine-network/go-tangerine/swarm/storage/feed"
)
func serverFunc(api *api.API) swarmhttp.TestServer {
diff --git a/swarm/api/config.go b/swarm/api/config.go
index dc8b3bf53..d09dc9090 100644
--- a/swarm/api/config.go
+++ b/swarm/api/config.go
@@ -23,16 +23,16 @@ import (
"path/filepath"
"time"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/contracts/ens"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/node"
- "github.com/dexon-foundation/dexon/p2p/enode"
- "github.com/dexon-foundation/dexon/swarm/log"
- "github.com/dexon-foundation/dexon/swarm/network"
- "github.com/dexon-foundation/dexon/swarm/pss"
- "github.com/dexon-foundation/dexon/swarm/services/swap"
- "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/contracts/ens"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/node"
+ "github.com/tangerine-network/go-tangerine/p2p/enode"
+ "github.com/tangerine-network/go-tangerine/swarm/log"
+ "github.com/tangerine-network/go-tangerine/swarm/network"
+ "github.com/tangerine-network/go-tangerine/swarm/pss"
+ "github.com/tangerine-network/go-tangerine/swarm/services/swap"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
)
const (
diff --git a/swarm/api/config_test.go b/swarm/api/config_test.go
index 7ebacacae..259554b8a 100644
--- a/swarm/api/config_test.go
+++ b/swarm/api/config_test.go
@@ -20,8 +20,8 @@ import (
"reflect"
"testing"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/crypto"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/crypto"
)
func TestConfig(t *testing.T) {
diff --git a/swarm/api/encrypt.go b/swarm/api/encrypt.go
index 91aada3ff..f444dfeb8 100644
--- a/swarm/api/encrypt.go
+++ b/swarm/api/encrypt.go
@@ -20,7 +20,7 @@ import (
"encoding/binary"
"errors"
- "github.com/dexon-foundation/dexon/swarm/storage/encryption"
+ "github.com/tangerine-network/go-tangerine/swarm/storage/encryption"
"golang.org/x/crypto/sha3"
)
diff --git a/swarm/api/filesystem.go b/swarm/api/filesystem.go
index a7dc54071..c6c886b08 100644
--- a/swarm/api/filesystem.go
+++ b/swarm/api/filesystem.go
@@ -26,9 +26,9 @@ import (
"path/filepath"
"sync"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/swarm/log"
- "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/swarm/log"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
)
const maxParallelFiles = 5
diff --git a/swarm/api/filesystem_test.go b/swarm/api/filesystem_test.go
index 6d9f3757a..e1387e6ce 100644
--- a/swarm/api/filesystem_test.go
+++ b/swarm/api/filesystem_test.go
@@ -24,8 +24,8 @@ import (
"path/filepath"
"testing"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
)
var testDownloadDir, _ = ioutil.TempDir(os.TempDir(), "bzz-test")
diff --git a/swarm/api/gen_mime.go b/swarm/api/gen_mime.go
index b97880198..318ef311c 100644
--- a/swarm/api/gen_mime.go
+++ b/swarm/api/gen_mime.go
@@ -1,4 +1,4 @@
-// Code generated by github.com/dexon-foundation/dexon/cmd/swarm/mimegen. DO NOT EDIT.
+// Code generated by github.com/tangerine-network/go-tangerine/cmd/swarm/mimegen. DO NOT EDIT.
package api
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 {
diff --git a/swarm/api/inspector.go b/swarm/api/inspector.go
index cc8b79a7a..4bd0bedb1 100644
--- a/swarm/api/inspector.go
+++ b/swarm/api/inspector.go
@@ -19,8 +19,8 @@ package api
import (
"context"
- "github.com/dexon-foundation/dexon/swarm/network"
- "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/swarm/network"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
)
type Inspector struct {
diff --git a/swarm/api/manifest.go b/swarm/api/manifest.go
index d309f6914..51ff9b9a5 100644
--- a/swarm/api/manifest.go
+++ b/swarm/api/manifest.go
@@ -27,11 +27,11 @@ import (
"strings"
"time"
- "github.com/dexon-foundation/dexon/swarm/storage/feed"
+ "github.com/tangerine-network/go-tangerine/swarm/storage/feed"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/swarm/log"
- "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/swarm/log"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
)
const (
diff --git a/swarm/api/manifest_test.go b/swarm/api/manifest_test.go
index 268e628b1..ddd8b5b7e 100644
--- a/swarm/api/manifest_test.go
+++ b/swarm/api/manifest_test.go
@@ -25,7 +25,7 @@ import (
"strings"
"testing"
- "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
)
func manifest(paths ...string) (manifestReader storage.LazySectionReader) {
diff --git a/swarm/api/storage.go b/swarm/api/storage.go
index 7dd481377..dcdbe79d6 100644
--- a/swarm/api/storage.go
+++ b/swarm/api/storage.go
@@ -20,7 +20,7 @@ import (
"context"
"path"
- "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
)
type Response struct {
diff --git a/swarm/api/uri.go b/swarm/api/uri.go
index 30dcb4988..f42c7a339 100644
--- a/swarm/api/uri.go
+++ b/swarm/api/uri.go
@@ -22,8 +22,8 @@ import (
"regexp"
"strings"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
)
//matches hex swarm hashes
diff --git a/swarm/api/uri_test.go b/swarm/api/uri_test.go
index 9cb34e941..42109d866 100644
--- a/swarm/api/uri_test.go
+++ b/swarm/api/uri_test.go
@@ -21,7 +21,7 @@ import (
"reflect"
"testing"
- "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/tangerine-network/go-tangerine/swarm/storage"
)
func TestParseURI(t *testing.T) {