Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
b0ad2072
Commit
b0ad2072
authored
Apr 27, 2016
by
Jeromy
Browse files
rewrite all package paths to dvcs
parent
0d7301a7
Changes
65
Show whitespace changes
Inline
Side-by-side
p2p/net/filter/filter.go
View file @
b0ad2072
...
...
@@ -4,8 +4,8 @@ import (
"net"
"sync"
ma
net
"gx/ipfs/QmTrxSBY8Wqd5aBB4MeizeSzS5xFbK8dQBrYaMsiGnCBhb
/go-multiaddr
-net
"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ma
"github.com/jbenet
/go-multiaddr"
ma
net
"github.com/jbenet
/go-multiaddr
-net
"
)
type
Filters
struct
{
...
...
p2p/net/filter/filter_test.go
View file @
b0ad2072
...
...
@@ -4,7 +4,7 @@ import (
"net"
"testing"
ma
"g
x/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ma
"g
ithub.com/jbenet
/go-multiaddr"
)
func
TestFilter
(
t
*
testing
.
T
)
{
...
...
p2p/net/interface.go
View file @
b0ad2072
...
...
@@ -3,11 +3,11 @@ package net
import
(
"io"
peer
"github.com/ipfs/go-libp2p-peer"
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr"
ma
"github.com/jbenet/go-multiaddr"
"github.com/jbenet/goprocess"
context
"golang.org/x/net/context"
)
// MessageSizeMax is a soft (recommended) maximum for network messages.
...
...
p2p/net/mock/interface.go
View file @
b0ad2072
...
...
@@ -7,14 +7,14 @@
package
mocknet
import
(
ic
"github.com/ipfs/go-libp2p-crypto"
peer
"github.com/ipfs/go-libp2p-peer"
host
"github.com/ipfs/go-libp2p/p2p/host"
inet
"github.com/ipfs/go-libp2p/p2p/net"
ic
"gx/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
"io"
"time"
ma
"g
x/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ma
"g
ithub.com/jbenet
/go-multiaddr"
)
type
Mocknet
interface
{
...
...
p2p/net/mock/mock.go
View file @
b0ad2072
package
mocknet
import
(
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context
"
logging
"gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log
"
logging
"github.com/ipfs/go-log
"
context
"golang.org/x/net/context
"
)
var
log
=
logging
.
Logger
(
"mocknet"
)
...
...
p2p/net/mock/mock_conn.go
View file @
b0ad2072
...
...
@@ -4,11 +4,11 @@ import (
"container/list"
"sync"
ic
"github.com/ipfs/go-libp2p-crypto"
peer
"github.com/ipfs/go-libp2p-peer"
inet
"github.com/ipfs/go-libp2p/p2p/net"
process
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
ic
"gx/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr"
ma
"github.com/jbenet/go-multiaddr"
process
"github.com/jbenet/goprocess"
)
// conn represents one side's perspective of a
...
...
p2p/net/mock/mock_link.go
View file @
b0ad2072
...
...
@@ -6,8 +6,8 @@ import (
"sync"
"time"
peer
"github.com/ipfs/go-libp2p-peer"
inet
"github.com/ipfs/go-libp2p/p2p/net"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
)
// link implements mocknet.Link
...
...
p2p/net/mock/mock_net.go
View file @
b0ad2072
...
...
@@ -5,18 +5,18 @@ import (
"sort"
"sync"
ic
"github.com/ipfs/go-libp2p-crypto"
peer
"github.com/ipfs/go-libp2p-peer"
host
"github.com/ipfs/go-libp2p/p2p/host"
bhost
"github.com/ipfs/go-libp2p/p2p/host/basic"
inet
"github.com/ipfs/go-libp2p/p2p/net"
p2putil
"github.com/ipfs/go-libp2p/p2p/test/util"
testutil
"github.com/ipfs/go-libp2p/testutil"
ic
"gx/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess
"
goprocessctx
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn
/goprocess
/context
"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net
/context"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr
"
ma
"github.com/jbenet/go-multiaddr
"
"github.com/jbenet
/goprocess"
goprocessctx
"github.com/jbenet/goprocess
/context"
context
"golang.org/x/net/context
"
)
// mocknet implements mocknet.Mocknet
...
...
p2p/net/mock/mock_notif_test.go
View file @
b0ad2072
...
...
@@ -4,10 +4,10 @@ import (
"testing"
"time"
peer
"github.com/ipfs/go-libp2p-peer"
inet
"github.com/ipfs/go-libp2p/p2p/net"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr"
ma
"github.com/jbenet/go-multiaddr"
context
"golang.org/x/net/context"
)
func
TestNotifications
(
t
*
testing
.
T
)
{
...
...
p2p/net/mock/mock_peernet.go
View file @
b0ad2072
...
...
@@ -5,12 +5,12 @@ import (
"math/rand"
"sync"
peer
"github.com/ipfs/go-libp2p-peer"
inet
"github.com/ipfs/go-libp2p/p2p/net"
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
goprocessctx
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess/context"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr"
ma
"github.com/jbenet/go-multiaddr"
"github.com/jbenet/goprocess"
goprocessctx
"github.com/jbenet/goprocess/context"
context
"golang.org/x/net/context"
)
// peernet implements inet.Network
...
...
p2p/net/mock/mock_printer.go
View file @
b0ad2072
...
...
@@ -4,8 +4,8 @@ import (
"fmt"
"io"
peer
"github.com/ipfs/go-libp2p-peer"
inet
"github.com/ipfs/go-libp2p/p2p/net"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
)
// separate object so our interfaces are separate :)
...
...
p2p/net/mock/mock_stream.go
View file @
b0ad2072
...
...
@@ -6,7 +6,7 @@ import (
"time"
inet
"github.com/ipfs/go-libp2p/p2p/net"
process
"g
x/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn
/goprocess"
process
"g
ithub.com/jbenet
/goprocess"
)
// stream implements inet.Stream
...
...
p2p/net/mock/mock_test.go
View file @
b0ad2072
...
...
@@ -9,13 +9,13 @@ import (
"testing"
"time"
peer
"github.com/ipfs/go-libp2p-peer"
inet
"github.com/ipfs/go-libp2p/p2p/net"
protocol
"github.com/ipfs/go-libp2p/p2p/protocol"
testutil
"github.com/ipfs/go-libp2p/testutil"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
detectrace
"g
x/ipfs/QmQHGMVmrsgmqUG8ih3puNXUJneSpi13dkcZpzLKkskUkH
/go-detect-race"
context
"g
x/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-
net/context"
detectrace
"g
ithub.com/jbenet
/go-detect-race"
context
"g
olang.org/x/
net/context"
)
func
randPeer
(
t
*
testing
.
T
)
peer
.
ID
{
...
...
p2p/net/swarm/addr/addr.go
View file @
b0ad2072
...
...
@@ -3,10 +3,10 @@ package addrutil
import
(
"fmt"
manet
"gx/ipfs/QmTrxSBY8Wqd5aBB4MeizeSzS5xFbK8dQBrYaMsiGnCBhb/go-multiaddr-net
"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context
"
logging
"gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log
"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr
"
logging
"github.com/ipfs/go-log
"
ma
"github.com/jbenet/go-multiaddr
"
manet
"github.com/jbenet/go-multiaddr-net
"
context
"golang.org/x/net/context
"
)
var
log
=
logging
.
Logger
(
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
)
...
...
p2p/net/swarm/addr/addr_test.go
View file @
b0ad2072
...
...
@@ -3,8 +3,8 @@ package addrutil
import
(
"testing"
ma
net
"gx/ipfs/QmTrxSBY8Wqd5aBB4MeizeSzS5xFbK8dQBrYaMsiGnCBhb
/go-multiaddr
-net
"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ma
"github.com/jbenet
/go-multiaddr"
ma
net
"github.com/jbenet
/go-multiaddr
-net
"
)
func
newMultiaddr
(
t
*
testing
.
T
,
s
string
)
ma
.
Multiaddr
{
...
...
p2p/net/swarm/dial_test.go
View file @
b0ad2072
...
...
@@ -7,14 +7,14 @@ import (
"testing"
"time"
peer
"github.com/ipfs/go-libp2p-peer"
addrutil
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
testutil
"github.com/ipfs/go-libp2p/testutil"
ci
"github.com/ipfs/go-libp2p/testutil/ci"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
ma
net
"gx/ipfs/QmTrxSBY8Wqd5aBB4MeizeSzS5xFbK8dQBrYaMsiGnCBhb
/go-multiaddr
-net
"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/contex
t"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr
"
ma
"github.com/jbenet
/go-multiaddr"
manet
"github.com/jbenet/go-multiaddr-ne
t"
context
"golang.org/x/net/context
"
)
func
closeSwarms
(
swarms
[]
*
Swarm
)
{
...
...
p2p/net/swarm/peers_test.go
View file @
b0ad2072
...
...
@@ -3,9 +3,9 @@ package swarm
import
(
"testing"
peer
"g
x/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context
"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr
"
peer
"g
ithub.com/ipfs
/go-libp2p-peer"
ma
"github.com/jbenet/go-multiaddr
"
context
"golang.org/x/net/context
"
)
func
TestPeers
(
t
*
testing
.
T
)
{
...
...
p2p/net/swarm/simul_test.go
View file @
b0ad2072
...
...
@@ -6,11 +6,11 @@ import (
"testing"
"time"
peer
"github.com/ipfs/go-libp2p-peer"
ci
"github.com/ipfs/go-libp2p/testutil/ci"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context
"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr
"
ma
"github.com/jbenet/go-multiaddr
"
context
"golang.org/x/net/context
"
)
func
TestSimultOpen
(
t
*
testing
.
T
)
{
...
...
p2p/net/swarm/swarm.go
View file @
b0ad2072
...
...
@@ -8,25 +8,25 @@ import (
"sync"
"time"
peer
"github.com/ipfs/go-libp2p-peer"
transport
"github.com/ipfs/go-libp2p-transport"
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
mconn
"github.com/ipfs/go-libp2p/p2p/metrics/conn"
inet
"github.com/ipfs/go-libp2p/p2p/net"
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
filter
"github.com/ipfs/go-libp2p/p2p/net/filter"
addrutil
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
goprocessctx
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess/context"
transport
"gx/ipfs/QmRHqYZs3Diy8YC3bW16zvs8VDDwS2ARKBuKwALxEMqibc/go-libp2p-transport"
pst
"gx/ipfs/QmWSJzRkCMJFHYUQZxKwPX8WA7XipaPtfiwMPARP51ymfn/go-stream-muxer"
psmss
"gx/ipfs/QmWSJzRkCMJFHYUQZxKwPX8WA7XipaPtfiwMPARP51ymfn/go-stream-muxer/multistream"
spdy
"gx/ipfs/QmWSJzRkCMJFHYUQZxKwPX8WA7XipaPtfiwMPARP51ymfn/go-stream-muxer/spdystream"
yamux
"gx/ipfs/QmWSJzRkCMJFHYUQZxKwPX8WA7XipaPtfiwMPARP51ymfn/go-stream-muxer/yamux"
ps
"gx/ipfs/QmZK81vcgMhpb2t7GNbozk7qzt6Rj4zFqitpvsWT9mduW8/go-peerstream"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
logging
"gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr"
mafilter
"gx/ipfs/Qme8dipKnZAChkp5Kfgj2MYYyBbzjqqPXmxQx3g9v3MoxP/multiaddr-filter"
logging
"github.com/ipfs/go-log"
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"
spdy
"github.com/jbenet/go-stream-muxer/spdystream"
yamux
"github.com/jbenet/go-stream-muxer/yamux"
"github.com/jbenet/goprocess"
goprocessctx
"github.com/jbenet/goprocess/context"
mafilter
"github.com/whyrusleeping/multiaddr-filter"
context
"golang.org/x/net/context"
)
var
log
=
logging
.
Logger
(
"swarm2"
)
...
...
p2p/net/swarm/swarm_addr.go
View file @
b0ad2072
...
...
@@ -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
"g
x/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ma
"g
ithub.com/jbenet
/go-multiaddr"
)
// ListenAddresses returns a list of addresses at which this swarm listens.
...
...
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment