path rewrites
This commit is contained in:
parent
451945c2c5
commit
ada8212cac
|
@ -9,9 +9,9 @@ package loggables
|
|||
import (
|
||||
"net"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
|
||||
logging "github.com/ipfs/go-log"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
)
|
||||
|
|
|
@ -21,10 +21,10 @@ import (
|
|||
|
||||
pb "github.com/ipfs/go-libp2p/p2p/crypto/pb"
|
||||
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
proto "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
|
||||
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
logging "github.com/ipfs/go-log"
|
||||
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
)
|
||||
|
||||
var log = logging.Logger("crypto")
|
||||
|
|
|
@ -14,7 +14,7 @@ It has these top-level messages:
|
|||
*/
|
||||
package crypto_pb
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import proto "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"crypto/x509"
|
||||
"errors"
|
||||
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
proto "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
|
||||
|
||||
pb "github.com/ipfs/go-libp2p/p2p/crypto/pb"
|
||||
)
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
"hash"
|
||||
|
||||
ci "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
bfish "golang.org/x/crypto/blowfish"
|
||||
bfish "gx/ipfs/Qme1boxspcQWR8FBzMxeppqug2fYgYc15diNWmqgDVnvn2/go-crypto/blowfish"
|
||||
)
|
||||
|
||||
// List of supported ECDH curves
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
ci "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
msgio "github.com/jbenet/go-msgio"
|
||||
context "golang.org/x/net/context"
|
||||
msgio "gx/ipfs/QmRQhVisS8dmPbjBUthVkenn81pBxrx1GxE281csJhm2vL/go-msgio"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
// SessionGenerator constructs secure communication sessions for a peer.
|
||||
|
|
|
@ -14,7 +14,7 @@ It has these top-level messages:
|
|||
*/
|
||||
package spipe_pb
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import proto "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
|
|
@ -9,13 +9,13 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
ci "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
pb "github.com/ipfs/go-libp2p/p2p/crypto/secio/pb"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
logging "github.com/ipfs/go-log"
|
||||
msgio "github.com/jbenet/go-msgio"
|
||||
context "golang.org/x/net/context"
|
||||
msgio "gx/ipfs/QmRQhVisS8dmPbjBUthVkenn81pBxrx1GxE281csJhm2vL/go-msgio"
|
||||
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
)
|
||||
|
||||
var log = logging.Logger("secio")
|
||||
|
|
|
@ -9,10 +9,10 @@ import (
|
|||
|
||||
"crypto/hmac"
|
||||
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
msgio "github.com/jbenet/go-msgio"
|
||||
mpool "github.com/jbenet/go-msgio/mpool"
|
||||
context "golang.org/x/net/context"
|
||||
msgio "gx/ipfs/QmRQhVisS8dmPbjBUthVkenn81pBxrx1GxE281csJhm2vL/go-msgio"
|
||||
mpool "gx/ipfs/QmRQhVisS8dmPbjBUthVkenn81pBxrx1GxE281csJhm2vL/go-msgio/mpool"
|
||||
proto "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
const MaxMsgSize = 8 * 1024 * 1024
|
||||
|
|
|
@ -9,13 +9,13 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/cryptix/mdns"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-multiaddr-net"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
"gx/ipfs/QmSscYPCcE1H3UQr2tnsJ2a9dK9LsHTBGgP71VW6fz67e5/mdns"
|
||||
manet "gx/ipfs/QmYtzQmUwPFGxjCXctJ8e6GXS8sYfoXy2pdeMbS5SFWqRi/go-multiaddr-net"
|
||||
|
||||
"github.com/ipfs/go-libp2p/p2p/host"
|
||||
"github.com/ipfs/go-libp2p/p2p/peer"
|
||||
logging "github.com/ipfs/go-log"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
)
|
||||
|
||||
var log = logging.Logger("mdns")
|
||||
|
|
|
@ -5,10 +5,10 @@ import (
|
|||
|
||||
metrics "github.com/ipfs/go-libp2p/p2p/metrics"
|
||||
mstream "github.com/ipfs/go-libp2p/p2p/metrics/stream"
|
||||
logging "github.com/ipfs/go-log"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
goprocess "github.com/jbenet/goprocess"
|
||||
context "golang.org/x/net/context"
|
||||
goprocess "gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
|
||||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
@ -16,7 +16,7 @@ import (
|
|||
identify "github.com/ipfs/go-libp2p/p2p/protocol/identify"
|
||||
relay "github.com/ipfs/go-libp2p/p2p/protocol/relay"
|
||||
|
||||
msmux "github.com/whyrusleeping/go-multistream"
|
||||
msmux "gx/ipfs/QmUeEcYJrzAEKdQXjzTxCgNZgc9sRuwharsvzzm5Gd2oGB/go-multistream"
|
||||
)
|
||||
|
||||
var log = logging.Logger("github.com/ipfs/go-libp2p/p2p/host/basic")
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
protocol "github.com/ipfs/go-libp2p/p2p/protocol"
|
||||
testutil "github.com/ipfs/go-libp2p/p2p/test/util"
|
||||
|
||||
context "golang.org/x/net/context"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func TestHostSimple(t *testing.T) {
|
||||
|
|
|
@ -3,9 +3,9 @@ package basichost
|
|||
import (
|
||||
"sync"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
goprocess "github.com/jbenet/goprocess"
|
||||
context "golang.org/x/net/context"
|
||||
goprocess "gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
|
||||
lgbl "github.com/ipfs/go-libp2p/loggables"
|
||||
inat "github.com/ipfs/go-libp2p/p2p/nat"
|
||||
|
|
|
@ -5,11 +5,11 @@ import (
|
|||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
protocol "github.com/ipfs/go-libp2p/p2p/protocol"
|
||||
logging "github.com/ipfs/go-log"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
|
||||
msmux "github.com/whyrusleeping/go-multistream"
|
||||
msmux "gx/ipfs/QmUeEcYJrzAEKdQXjzTxCgNZgc9sRuwharsvzzm5Gd2oGB/go-multistream"
|
||||
)
|
||||
|
||||
var log = logging.Logger("github.com/ipfs/go-libp2p/p2p/host")
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"time"
|
||||
|
||||
lgbl "github.com/ipfs/go-libp2p/loggables"
|
||||
logging "github.com/ipfs/go-log"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
|
||||
host "github.com/ipfs/go-libp2p/p2p/host"
|
||||
metrics "github.com/ipfs/go-libp2p/p2p/metrics"
|
||||
|
@ -15,7 +15,7 @@ import (
|
|||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
protocol "github.com/ipfs/go-libp2p/p2p/protocol"
|
||||
|
||||
msmux "github.com/whyrusleeping/go-multistream"
|
||||
msmux "gx/ipfs/QmUeEcYJrzAEKdQXjzTxCgNZgc9sRuwharsvzzm5Gd2oGB/go-multistream"
|
||||
)
|
||||
|
||||
var log = logging.Logger("github.com/ipfs/go-libp2p/p2p/host/routed")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package metrics
|
||||
|
||||
import (
|
||||
gm "github.com/whyrusleeping/go-metrics"
|
||||
gm "gx/ipfs/QmeYJHEk8UjVVZ4XCRTZe6dFQrb8pGWD81LYCgeLp8CvMB/go-metrics"
|
||||
"sync"
|
||||
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
|
|
@ -5,10 +5,10 @@ import (
|
|||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
randbo "github.com/dustin/randbo"
|
||||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
protocol "github.com/ipfs/go-libp2p/p2p/protocol"
|
||||
randbo "gx/ipfs/QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T/randbo"
|
||||
)
|
||||
|
||||
type FakeStream struct {
|
||||
|
|
|
@ -8,14 +8,14 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-multiaddr-net"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
manet "gx/ipfs/QmYtzQmUwPFGxjCXctJ8e6GXS8sYfoXy2pdeMbS5SFWqRi/go-multiaddr-net"
|
||||
|
||||
nat "github.com/fd/go-nat"
|
||||
logging "github.com/ipfs/go-log"
|
||||
goprocess "github.com/jbenet/goprocess"
|
||||
periodic "github.com/jbenet/goprocess/periodic"
|
||||
notifier "github.com/whyrusleeping/go-notifier"
|
||||
nat "gx/ipfs/QmNLvkCDV6ZjUJsEwGNporYBuZdhWT6q7TBVYQwwRv12HT/go-nat"
|
||||
goprocess "gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
|
||||
periodic "gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess/periodic"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
notifier "gx/ipfs/QmbcS9XrwZkF1rZj8bBwwzoYhVuA2PCnPhFUL1pyWGgt2A/go-notifier"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -6,15 +6,15 @@ import (
|
|||
"net"
|
||||
"time"
|
||||
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
lgbl "github.com/ipfs/go-libp2p/loggables"
|
||||
ic "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
logging "github.com/ipfs/go-log"
|
||||
mpool "github.com/jbenet/go-msgio/mpool"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-multiaddr-net"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
mpool "gx/ipfs/QmRQhVisS8dmPbjBUthVkenn81pBxrx1GxE281csJhm2vL/go-msgio/mpool"
|
||||
manet "gx/ipfs/QmYtzQmUwPFGxjCXctJ8e6GXS8sYfoXy2pdeMbS5SFWqRi/go-multiaddr-net"
|
||||
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
)
|
||||
|
||||
var log = logging.Logger("conn")
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"time"
|
||||
|
||||
travis "github.com/ipfs/go-libp2p/testutil/ci/travis"
|
||||
msgio "github.com/jbenet/go-msgio"
|
||||
context "golang.org/x/net/context"
|
||||
msgio "gx/ipfs/QmRQhVisS8dmPbjBUthVkenn81pBxrx1GxE281csJhm2vL/go-msgio"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func msgioWrap(c Conn) msgio.ReadWriter {
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"strings"
|
||||
|
||||
lgbl "github.com/ipfs/go-libp2p/loggables"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-multiaddr-net"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
manet "gx/ipfs/QmYtzQmUwPFGxjCXctJ8e6GXS8sYfoXy2pdeMbS5SFWqRi/go-multiaddr-net"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
|
||||
ci "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
addrutil "github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
|
||||
|
|
|
@ -13,8 +13,8 @@ import (
|
|||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
tu "github.com/ipfs/go-libp2p/testutil"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func echoListen(ctx context.Context, listener Listener) {
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
transport "github.com/ipfs/go-libp2p/p2p/net/transport"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
type PeerConn interface {
|
||||
|
|
|
@ -5,11 +5,11 @@ import (
|
|||
"io"
|
||||
"net"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
tec "github.com/jbenet/go-temp-err-catcher"
|
||||
"github.com/jbenet/goprocess"
|
||||
goprocessctx "github.com/jbenet/goprocess/context"
|
||||
context "golang.org/x/net/context"
|
||||
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
|
||||
goprocessctx "gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
tec "gx/ipfs/QmWHgLqrghM9zw77nF6gdvT9ExQ2RB9pLxkd8sDHZf1rWb/go-temp-err-catcher"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
|
||||
ic "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
filter "github.com/ipfs/go-libp2p/p2p/net/filter"
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"net"
|
||||
"time"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
|
||||
ic "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
secio "github.com/ipfs/go-libp2p/p2p/crypto/secio"
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
ic "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
travis "github.com/ipfs/go-libp2p/testutil/ci/travis"
|
||||
|
||||
context "golang.org/x/net/context"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func upgradeToSecureConn(t *testing.T, ctx context.Context, sk ic.PrivKey, c Conn) (Conn, error) {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"strings"
|
||||
"sync"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-multiaddr-net"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
manet "gx/ipfs/QmYtzQmUwPFGxjCXctJ8e6GXS8sYfoXy2pdeMbS5SFWqRi/go-multiaddr-net"
|
||||
)
|
||||
|
||||
type Filters struct {
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
conn "github.com/ipfs/go-libp2p/p2p/net/conn"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
"github.com/jbenet/goprocess"
|
||||
context "golang.org/x/net/context"
|
||||
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
// MessageSizeMax is a soft (recommended) maximum for network messages.
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
"io"
|
||||
"time"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
type Mocknet interface {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package mocknet
|
||||
|
||||
import (
|
||||
logging "github.com/ipfs/go-log"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
|
||||
context "golang.org/x/net/context"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
var log = logging.Logger("mocknet")
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
process "github.com/jbenet/goprocess"
|
||||
process "gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
// conn represents one side's perspective of a
|
||||
|
|
|
@ -13,10 +13,10 @@ import (
|
|||
p2putil "github.com/ipfs/go-libp2p/p2p/test/util"
|
||||
testutil "github.com/ipfs/go-libp2p/testutil"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
"github.com/jbenet/goprocess"
|
||||
goprocessctx "github.com/jbenet/goprocess/context"
|
||||
context "golang.org/x/net/context"
|
||||
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
|
||||
goprocessctx "gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
// mocknet implements mocknet.Mocknet
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
|
||||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func TestNotifications(t *testing.T) {
|
||||
|
|
|
@ -8,10 +8,10 @@ import (
|
|||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
"github.com/jbenet/goprocess"
|
||||
goprocessctx "github.com/jbenet/goprocess/context"
|
||||
context "golang.org/x/net/context"
|
||||
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
|
||||
goprocessctx "gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
// peernet implements inet.Network
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"io"
|
||||
"time"
|
||||
|
||||
process "github.com/jbenet/goprocess"
|
||||
process "gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
|
||||
|
||||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
)
|
||||
|
|
|
@ -14,8 +14,8 @@ import (
|
|||
protocol "github.com/ipfs/go-libp2p/p2p/protocol"
|
||||
testutil "github.com/ipfs/go-libp2p/testutil"
|
||||
|
||||
detectrace "github.com/jbenet/go-detect-race"
|
||||
context "golang.org/x/net/context"
|
||||
detectrace "gx/ipfs/QmQHGMVmrsgmqUG8ih3puNXUJneSpi13dkcZpzLKkskUkH/go-detect-race"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func randPeer(t *testing.T) peer.ID {
|
||||
|
|
|
@ -3,11 +3,11 @@ package addrutil
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
logging "github.com/ipfs/go-log"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-multiaddr-net"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
manet "gx/ipfs/QmYtzQmUwPFGxjCXctJ8e6GXS8sYfoXy2pdeMbS5SFWqRi/go-multiaddr-net"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
var log = logging.Logger("github.com/ipfs/go-libp2p/p2p/net/swarm/addr")
|
||||
|
|
|
@ -3,8 +3,8 @@ package addrutil
|
|||
import (
|
||||
"testing"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-multiaddr-net"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
manet "gx/ipfs/QmYtzQmUwPFGxjCXctJ8e6GXS8sYfoXy2pdeMbS5SFWqRi/go-multiaddr-net"
|
||||
)
|
||||
|
||||
func newMultiaddr(t *testing.T, s string) ma.Multiaddr {
|
||||
|
|
|
@ -13,9 +13,9 @@ import (
|
|||
testutil "github.com/ipfs/go-libp2p/testutil"
|
||||
ci "github.com/ipfs/go-libp2p/testutil/ci"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-multiaddr-net"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
manet "gx/ipfs/QmYtzQmUwPFGxjCXctJ8e6GXS8sYfoXy2pdeMbS5SFWqRi/go-multiaddr-net"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func acceptAndHang(l net.Listener) {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func TestPeers(t *testing.T) {
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
ci "github.com/ipfs/go-libp2p/testutil/ci"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func TestSimultOpen(t *testing.T) {
|
||||
|
|
|
@ -16,16 +16,16 @@ import (
|
|||
transport "github.com/ipfs/go-libp2p/p2p/net/transport"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ps "github.com/jbenet/go-peerstream"
|
||||
pst "github.com/jbenet/go-stream-muxer"
|
||||
psmss "github.com/jbenet/go-stream-muxer/multistream"
|
||||
"github.com/jbenet/goprocess"
|
||||
goprocessctx "github.com/jbenet/goprocess/context"
|
||||
mafilter "github.com/whyrusleeping/multiaddr-filter"
|
||||
context "golang.org/x/net/context"
|
||||
ps "gx/ipfs/QmQDPXRFzRcCGPbPViQCKjzbQBkZGpLV1f9KwXnksSNcTK/go-peerstream"
|
||||
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
|
||||
goprocessctx "gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
pst "gx/ipfs/QmTYr6RrJs8b63LTVwahmtytnuqzsLfNPBJp6EvmFWHbGh/go-stream-muxer"
|
||||
psmss "gx/ipfs/QmTYr6RrJs8b63LTVwahmtytnuqzsLfNPBJp6EvmFWHbGh/go-stream-muxer/multistream"
|
||||
mafilter "gx/ipfs/QmW3Q7RQa8D1qCEEeyKCBV1drgFxvHBqAZ3zgCujEwKpHD/multiaddr-filter"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
|
||||
logging "github.com/ipfs/go-log"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
)
|
||||
|
||||
var log = logging.Logger("swarm2")
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
conn "github.com/ipfs/go-libp2p/p2p/net/conn"
|
||||
addrutil "github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
// ListenAddresses returns a list of addresses at which this swarm listens.
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
testutil "github.com/ipfs/go-libp2p/testutil"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func TestFilterAddrs(t *testing.T) {
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
conn "github.com/ipfs/go-libp2p/p2p/net/conn"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ps "github.com/jbenet/go-peerstream"
|
||||
context "golang.org/x/net/context"
|
||||
ps "gx/ipfs/QmQDPXRFzRcCGPbPViQCKjzbQBkZGpLV1f9KwXnksSNcTK/go-peerstream"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
// a Conn is a simple wrapper around a ps.Conn that also exposes
|
||||
|
|
|
@ -12,10 +12,10 @@ import (
|
|||
conn "github.com/ipfs/go-libp2p/p2p/net/conn"
|
||||
addrutil "github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
"github.com/jbenet/go-multiaddr-net"
|
||||
"gx/ipfs/QmYtzQmUwPFGxjCXctJ8e6GXS8sYfoXy2pdeMbS5SFWqRi/go-multiaddr-net"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
// Diagram of dial sync:
|
||||
|
|
|
@ -9,9 +9,9 @@ import (
|
|||
conn "github.com/ipfs/go-libp2p/p2p/net/conn"
|
||||
transport "github.com/ipfs/go-libp2p/p2p/net/transport"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ps "github.com/jbenet/go-peerstream"
|
||||
context "golang.org/x/net/context"
|
||||
ps "gx/ipfs/QmQDPXRFzRcCGPbPViQCKjzbQBkZGpLV1f9KwXnksSNcTK/go-peerstream"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
// Open listeners and reuse-dialers for the given addresses
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
metrics "github.com/ipfs/go-libp2p/p2p/metrics"
|
||||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
"github.com/jbenet/goprocess"
|
||||
context "golang.org/x/net/context"
|
||||
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
// Network implements the inet.Network interface.
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
|
||||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
testutil "github.com/ipfs/go-libp2p/p2p/test/util"
|
||||
context "golang.org/x/net/context"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
// TestConnectednessCorrect starts a few networks, connects a few
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
|
||||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
|
|
@ -3,7 +3,7 @@ package swarm
|
|||
import (
|
||||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
|
||||
ps "github.com/jbenet/go-peerstream"
|
||||
ps "gx/ipfs/QmQDPXRFzRcCGPbPViQCKjzbQBkZGpLV1f9KwXnksSNcTK/go-peerstream"
|
||||
)
|
||||
|
||||
// a Stream is a wrapper around a ps.Stream that exposes a way to get
|
||||
|
|
|
@ -14,8 +14,8 @@ import (
|
|||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
testutil "github.com/ipfs/go-libp2p/testutil"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func EchoStreamHandler(stream inet.Stream) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"strings"
|
||||
"syscall"
|
||||
|
||||
reuseport "github.com/jbenet/go-reuseport"
|
||||
reuseport "gx/ipfs/QmaaC9QMYTQHCbMq3Ebr3uMaAR2ev4AVqMmsJpgQijAZbJ/go-reuseport"
|
||||
)
|
||||
|
||||
// envReuseport is the env variable name used to turn off reuse port.
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
"time"
|
||||
|
||||
lgbl "github.com/ipfs/go-libp2p/loggables"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-multiaddr-net"
|
||||
reuseport "github.com/jbenet/go-reuseport"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
manet "gx/ipfs/QmYtzQmUwPFGxjCXctJ8e6GXS8sYfoXy2pdeMbS5SFWqRi/go-multiaddr-net"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
reuseport "gx/ipfs/QmaaC9QMYTQHCbMq3Ebr3uMaAR2ev4AVqMmsJpgQijAZbJ/go-reuseport"
|
||||
)
|
||||
|
||||
type TcpTransport struct {
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"net"
|
||||
"time"
|
||||
|
||||
logging "github.com/ipfs/go-log"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-multiaddr-net"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
manet "gx/ipfs/QmYtzQmUwPFGxjCXctJ8e6GXS8sYfoXy2pdeMbS5SFWqRi/go-multiaddr-net"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
)
|
||||
|
||||
var log = logging.Logger("transport")
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
package addr
|
||||
|
||||
import (
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
// AddrSource is a source of addresses. It allows clients to retrieve
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
func newAddrOrFatal(t *testing.T, s string) ma.Multiaddr {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
func IDS(t *testing.T, ids string) ID {
|
||||
|
|
|
@ -7,13 +7,13 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
b58 "github.com/jbenet/go-base58"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
mh "github.com/jbenet/go-multihash"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
b58 "gx/ipfs/QmT8rehPR3F6bmwL6zjUN8XpiDBFFpMP2myPdC6ApsWfJf/go-base58"
|
||||
mh "gx/ipfs/QmYf7ng2hG5XBtJA3tN34DQ2GUN5HNksEw1rLDkmr6vGku/go-multihash"
|
||||
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
ic "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
logging "github.com/ipfs/go-log"
|
||||
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
)
|
||||
|
||||
var log = logging.Logger("peer")
|
||||
|
|
|
@ -6,12 +6,12 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
ic "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
. "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
tu "github.com/ipfs/go-libp2p/testutil"
|
||||
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
|
||||
|
||||
b58 "github.com/jbenet/go-base58"
|
||||
b58 "gx/ipfs/QmT8rehPR3F6bmwL6zjUN8XpiDBFFpMP2myPdC6ApsWfJf/go-base58"
|
||||
)
|
||||
|
||||
var gen1 keyset // generated
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
//ds "github.com/jbenet/go-datastore"
|
||||
//dssync "github.com/jbenet/go-datastore/sync"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -6,10 +6,10 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
|
||||
|
||||
context "golang.org/x/net/context"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func TestQueue(t *testing.T) {
|
||||
|
|
|
@ -2,8 +2,8 @@ package queue
|
|||
|
||||
import (
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
logging "github.com/ipfs/go-log"
|
||||
context "golang.org/x/net/context"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
)
|
||||
|
||||
var log = logging.Logger("peerqueue")
|
||||
|
|
|
@ -4,11 +4,11 @@ import (
|
|||
"strings"
|
||||
"sync"
|
||||
|
||||
semver "github.com/coreos/go-semver/semver"
|
||||
ggio "github.com/gogo/protobuf/io"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
msmux "github.com/whyrusleeping/go-multistream"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
msmux "gx/ipfs/QmUeEcYJrzAEKdQXjzTxCgNZgc9sRuwharsvzzm5Gd2oGB/go-multistream"
|
||||
ggio "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/io"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
semver "gx/ipfs/QmcrrEpx3VMUbrbgVroH3YiYyUS5c4YAykzyPJWKspUYLa/go-semver/semver"
|
||||
|
||||
host "github.com/ipfs/go-libp2p/p2p/host"
|
||||
mstream "github.com/ipfs/go-libp2p/p2p/metrics/stream"
|
||||
|
@ -17,7 +17,7 @@ import (
|
|||
pb "github.com/ipfs/go-libp2p/p2p/protocol/identify/pb"
|
||||
|
||||
lgbl "github.com/ipfs/go-libp2p/loggables"
|
||||
logging "github.com/ipfs/go-log"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
)
|
||||
|
||||
var log = logging.Logger("net/identify")
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
identify "github.com/ipfs/go-libp2p/p2p/protocol/identify"
|
||||
testutil "github.com/ipfs/go-libp2p/p2p/test/util"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func subtestIDService(t *testing.T, postDialWait time.Duration) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
// ObservedAddr is an entry for an address reported by our peers.
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
// TestObsAddrSet
|
||||
|
|
|
@ -13,7 +13,7 @@ It has these top-level messages:
|
|||
*/
|
||||
package identify_pb
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import proto "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
|
|
@ -6,13 +6,13 @@ import (
|
|||
"io"
|
||||
"time"
|
||||
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
context "golang.org/x/net/context"
|
||||
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
|
||||
host "github.com/ipfs/go-libp2p/p2p/host"
|
||||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
logging "github.com/ipfs/go-log"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
)
|
||||
|
||||
var log = logging.Logger("ping")
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
netutil "github.com/ipfs/go-libp2p/p2p/test/util"
|
||||
context "golang.org/x/net/context"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func TestPing(t *testing.T) {
|
||||
|
|
|
@ -5,14 +5,14 @@ import (
|
|||
"io"
|
||||
"time"
|
||||
|
||||
mh "github.com/jbenet/go-multihash"
|
||||
mh "gx/ipfs/QmYf7ng2hG5XBtJA3tN34DQ2GUN5HNksEw1rLDkmr6vGku/go-multihash"
|
||||
|
||||
host "github.com/ipfs/go-libp2p/p2p/host"
|
||||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
protocol "github.com/ipfs/go-libp2p/p2p/protocol"
|
||||
logging "github.com/ipfs/go-log"
|
||||
context "golang.org/x/net/context"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
)
|
||||
|
||||
var log = logging.Logger("github.com/ipfs/go-libp2p/p2p/protocol/relay")
|
||||
|
|
|
@ -8,10 +8,10 @@ import (
|
|||
protocol "github.com/ipfs/go-libp2p/p2p/protocol"
|
||||
relay "github.com/ipfs/go-libp2p/p2p/protocol/relay"
|
||||
testutil "github.com/ipfs/go-libp2p/p2p/test/util"
|
||||
logging "github.com/ipfs/go-log"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
|
||||
msmux "github.com/whyrusleeping/go-multistream"
|
||||
context "golang.org/x/net/context"
|
||||
msmux "gx/ipfs/QmUeEcYJrzAEKdQXjzTxCgNZgc9sRuwharsvzzm5Gd2oGB/go-multistream"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
var log = logging.Logger("relay_test")
|
||||
|
|
|
@ -11,10 +11,10 @@ import (
|
|||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
protocol "github.com/ipfs/go-libp2p/p2p/protocol"
|
||||
testutil "github.com/ipfs/go-libp2p/p2p/test/util"
|
||||
logging "github.com/ipfs/go-log"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
context "golang.org/x/net/context"
|
||||
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
var log = logging.Logger("backpressure")
|
||||
|
|
|
@ -7,16 +7,16 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
host "github.com/ipfs/go-libp2p/p2p/host"
|
||||
inet "github.com/ipfs/go-libp2p/p2p/net"
|
||||
swarm "github.com/ipfs/go-libp2p/p2p/net/swarm"
|
||||
protocol "github.com/ipfs/go-libp2p/p2p/protocol"
|
||||
testutil "github.com/ipfs/go-libp2p/p2p/test/util"
|
||||
logging "github.com/ipfs/go-log"
|
||||
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
|
||||
ps "github.com/jbenet/go-peerstream"
|
||||
context "golang.org/x/net/context"
|
||||
ps "gx/ipfs/QmQDPXRFzRcCGPbPViQCKjzbQBkZGpLV1f9KwXnksSNcTK/go-peerstream"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -5,14 +5,14 @@ import (
|
|||
"io"
|
||||
"testing"
|
||||
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
testutil "github.com/ipfs/go-libp2p/testutil"
|
||||
logging "github.com/ipfs/go-log"
|
||||
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
|
||||
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
|
||||
|
||||
ic "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
var log = logging.Logger("boguskey")
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
tu "github.com/ipfs/go-libp2p/testutil"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
context "golang.org/x/net/context"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
func GenSwarmNetwork(t *testing.T, ctx context.Context) *swarm.Network {
|
||||
|
|
|
@ -8,11 +8,11 @@ import (
|
|||
"sync"
|
||||
"testing"
|
||||
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
ci "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
|
||||
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
// ZeroLocalTCPAddress is the "zero" tcp local multiaddr. This means:
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
ci "github.com/ipfs/go-libp2p/p2p/crypto"
|
||||
peer "github.com/ipfs/go-libp2p/p2p/peer"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
ma "gx/ipfs/QmR3JkmZBKYXgNMNsNZawm914455Qof3PEopwuVSeXG7aV/go-multiaddr"
|
||||
)
|
||||
|
||||
type Identity interface {
|
||||
|
|
Loading…
Reference in New Issue