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
70872ff6
Commit
70872ff6
authored
Oct 04, 2016
by
Jeromy
Browse files
update deps
parent
7081c172
Changes
44
Hide whitespace changes
Inline
Side-by-side
examples/hosts/main.go
View file @
70872ff6
...
@@ -14,10 +14,10 @@ import (
...
@@ -14,10 +14,10 @@ import (
bhost
"github.com/libp2p/go-libp2p/p2p/host/basic"
bhost
"github.com/libp2p/go-libp2p/p2p/host/basic"
swarm
"github.com/libp2p/go-libp2p/p2p/net/swarm"
swarm
"github.com/libp2p/go-libp2p/p2p/net/swarm"
peer
"github.com/ipfs/go-libp2p-peer"
peer
"github.com/libp2p/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
pstore
"github.com/libp2p/go-libp2p-peerstore"
ma
"github.com/jbenet/go-multiaddr"
testutil
"github.com/libp2p/go-testutil"
testutil
"github.com/libp2p/go-testutil"
ma
"github.com/multiformats/go-multiaddr"
)
)
// create a 'Host' with a random peer to listen on the given address
// create a 'Host' with a random peer to listen on the given address
...
...
examples/justtcp/main.go
View file @
70872ff6
...
@@ -5,9 +5,9 @@ import (
...
@@ -5,9 +5,9 @@ import (
"fmt"
"fmt"
"os"
"os"
ma
"github.com/jbenet/go-multiaddr"
"github.com/libp2p/go-libp2p/p2p/net/swarm"
"github.com/libp2p/go-libp2p/p2p/net/swarm"
tcpt
"github.com/libp2p/go-tcp-transport"
tcpt
"github.com/libp2p/go-tcp-transport"
ma
"github.com/multiformats/go-multiaddr"
)
)
func
fatal
(
i
interface
{})
{
func
fatal
(
i
interface
{})
{
...
...
p2p/discovery/mdns.go
View file @
70872ff6
...
@@ -10,12 +10,12 @@ import (
...
@@ -10,12 +10,12 @@ import (
"sync"
"sync"
"time"
"time"
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
logging
"github.com/ipfs/go-log"
logging
"github.com/ipfs/go-log"
ma
"github.com/jbenet/go-multiaddr"
manet
"github.com/jbenet/go-multiaddr-net"
"github.com/libp2p/go-libp2p-host"
"github.com/libp2p/go-libp2p-host"
"github.com/libp2p/go-libp2p-peer"
pstore
"github.com/libp2p/go-libp2p-peerstore"
ma
"github.com/multiformats/go-multiaddr"
manet
"github.com/multiformats/go-multiaddr-net"
"github.com/whyrusleeping/mdns"
"github.com/whyrusleeping/mdns"
)
)
...
...
p2p/discovery/mdns_test.go
View file @
70872ff6
...
@@ -8,7 +8,7 @@ import (
...
@@ -8,7 +8,7 @@ import (
host
"github.com/libp2p/go-libp2p-host"
host
"github.com/libp2p/go-libp2p-host"
netutil
"github.com/libp2p/go-libp2p/p2p/test/util"
netutil
"github.com/libp2p/go-libp2p/p2p/test/util"
pstore
"github.com/
ipfs
/go-libp2p-peerstore"
pstore
"github.com/
libp2p
/go-libp2p-peerstore"
)
)
type
DiscoveryNotifee
struct
{
type
DiscoveryNotifee
struct
{
...
...
p2p/host/basic/basic_host.go
View file @
70872ff6
...
@@ -8,15 +8,15 @@ import (
...
@@ -8,15 +8,15 @@ import (
identify
"github.com/libp2p/go-libp2p/p2p/protocol/identify"
identify
"github.com/libp2p/go-libp2p/p2p/protocol/identify"
relay
"github.com/libp2p/go-libp2p/p2p/protocol/relay"
relay
"github.com/libp2p/go-libp2p/p2p/protocol/relay"
peer
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
logging
"github.com/ipfs/go-log"
logging
"github.com/ipfs/go-log"
ma
"github.com/jbenet/go-multiaddr"
goprocess
"github.com/jbenet/goprocess"
goprocess
"github.com/jbenet/goprocess"
metrics
"github.com/libp2p/go-libp2p-metrics"
metrics
"github.com/libp2p/go-libp2p-metrics"
mstream
"github.com/libp2p/go-libp2p-metrics/stream"
mstream
"github.com/libp2p/go-libp2p-metrics/stream"
inet
"github.com/libp2p/go-libp2p-net"
inet
"github.com/libp2p/go-libp2p-net"
peer
"github.com/libp2p/go-libp2p-peer"
pstore
"github.com/libp2p/go-libp2p-peerstore"
protocol
"github.com/libp2p/go-libp2p-protocol"
protocol
"github.com/libp2p/go-libp2p-protocol"
ma
"github.com/multiformats/go-multiaddr"
msmux
"github.com/whyrusleeping/go-multistream"
msmux
"github.com/whyrusleeping/go-multistream"
)
)
...
...
p2p/host/basic/natmgr.go
View file @
70872ff6
...
@@ -6,10 +6,10 @@ import (
...
@@ -6,10 +6,10 @@ import (
inat
"github.com/libp2p/go-libp2p/p2p/nat"
inat
"github.com/libp2p/go-libp2p/p2p/nat"
lgbl
"github.com/ipfs/go-libp2p-loggables"
ma
"github.com/jbenet/go-multiaddr"
goprocess
"github.com/jbenet/goprocess"
goprocess
"github.com/jbenet/goprocess"
lgbl
"github.com/libp2p/go-libp2p-loggables"
inet
"github.com/libp2p/go-libp2p-net"
inet
"github.com/libp2p/go-libp2p-net"
ma
"github.com/multiformats/go-multiaddr"
)
)
// natManager takes care of adding + removing port mappings to the nat.
// natManager takes care of adding + removing port mappings to the nat.
...
...
p2p/host/routed/routed.go
View file @
70872ff6
...
@@ -7,14 +7,14 @@ import (
...
@@ -7,14 +7,14 @@ import (
host
"github.com/libp2p/go-libp2p-host"
host
"github.com/libp2p/go-libp2p-host"
lgbl
"github.com/ipfs/go-libp2p-loggables"
peer
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
logging
"github.com/ipfs/go-log"
logging
"github.com/ipfs/go-log"
ma
"github.com/
jbenet/go-multiaddr
"
lgbl
"github.com/
libp2p/go-libp2p-loggables
"
metrics
"github.com/libp2p/go-libp2p-metrics"
metrics
"github.com/libp2p/go-libp2p-metrics"
inet
"github.com/libp2p/go-libp2p-net"
inet
"github.com/libp2p/go-libp2p-net"
peer
"github.com/libp2p/go-libp2p-peer"
pstore
"github.com/libp2p/go-libp2p-peerstore"
protocol
"github.com/libp2p/go-libp2p-protocol"
protocol
"github.com/libp2p/go-libp2p-protocol"
ma
"github.com/multiformats/go-multiaddr"
msmux
"github.com/whyrusleeping/go-multistream"
msmux
"github.com/whyrusleeping/go-multistream"
)
)
...
...
p2p/nat/mapping.go
View file @
70872ff6
...
@@ -5,9 +5,9 @@ import (
...
@@ -5,9 +5,9 @@ import (
"sync"
"sync"
"time"
"time"
ma
"github.com/jbenet/go-multiaddr"
manet
"github.com/jbenet/go-multiaddr-net"
"github.com/jbenet/goprocess"
"github.com/jbenet/goprocess"
ma
"github.com/multiformats/go-multiaddr"
manet
"github.com/multiformats/go-multiaddr-net"
)
)
// Mapping represents a port mapping in a NAT.
// Mapping represents a port mapping in a NAT.
...
...
p2p/nat/nat.go
View file @
70872ff6
...
@@ -10,10 +10,10 @@ import (
...
@@ -10,10 +10,10 @@ import (
nat
"github.com/fd/go-nat"
nat
"github.com/fd/go-nat"
logging
"github.com/ipfs/go-log"
logging
"github.com/ipfs/go-log"
ma
"github.com/jbenet/go-multiaddr"
manet
"github.com/jbenet/go-multiaddr-net"
goprocess
"github.com/jbenet/goprocess"
goprocess
"github.com/jbenet/goprocess"
periodic
"github.com/jbenet/goprocess/periodic"
periodic
"github.com/jbenet/goprocess/periodic"
ma
"github.com/multiformats/go-multiaddr"
manet
"github.com/multiformats/go-multiaddr-net"
)
)
var
(
var
(
...
...
p2p/net/mock/interface.go
View file @
70872ff6
...
@@ -12,11 +12,11 @@ import (
...
@@ -12,11 +12,11 @@ import (
host
"github.com/libp2p/go-libp2p-host"
host
"github.com/libp2p/go-libp2p-host"
ic
"github.com/ipfs/go-libp2p-crypto"
ic
"github.com/libp2p/go-libp2p-crypto"
peer
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
ma
"github.com/jbenet/go-multiaddr"
inet
"github.com/libp2p/go-libp2p-net"
inet
"github.com/libp2p/go-libp2p-net"
peer
"github.com/libp2p/go-libp2p-peer"
pstore
"github.com/libp2p/go-libp2p-peerstore"
ma
"github.com/multiformats/go-multiaddr"
)
)
type
Mocknet
interface
{
type
Mocknet
interface
{
...
...
p2p/net/mock/mock_conn.go
View file @
70872ff6
...
@@ -4,11 +4,11 @@ import (
...
@@ -4,11 +4,11 @@ import (
"container/list"
"container/list"
"sync"
"sync"
ic
"github.com/ipfs/go-libp2p-crypto"
peer
"github.com/ipfs/go-libp2p-peer"
ma
"github.com/jbenet/go-multiaddr"
process
"github.com/jbenet/goprocess"
process
"github.com/jbenet/goprocess"
ic
"github.com/libp2p/go-libp2p-crypto"
inet
"github.com/libp2p/go-libp2p-net"
inet
"github.com/libp2p/go-libp2p-net"
peer
"github.com/libp2p/go-libp2p-peer"
ma
"github.com/multiformats/go-multiaddr"
)
)
// conn represents one side's perspective of a
// conn represents one side's perspective of a
...
...
p2p/net/mock/mock_link.go
View file @
70872ff6
...
@@ -6,8 +6,8 @@ import (
...
@@ -6,8 +6,8 @@ import (
"sync"
"sync"
"time"
"time"
peer
"github.com/ipfs/go-libp2p-peer"
inet
"github.com/libp2p/go-libp2p-net"
inet
"github.com/libp2p/go-libp2p-net"
peer
"github.com/libp2p/go-libp2p-peer"
)
)
// link implements mocknet.Link
// link implements mocknet.Link
...
...
p2p/net/mock/mock_net.go
View file @
70872ff6
...
@@ -10,14 +10,14 @@ import (
...
@@ -10,14 +10,14 @@ import (
bhost
"github.com/libp2p/go-libp2p/p2p/host/basic"
bhost
"github.com/libp2p/go-libp2p/p2p/host/basic"
p2putil
"github.com/libp2p/go-libp2p/p2p/test/util"
p2putil
"github.com/libp2p/go-libp2p/p2p/test/util"
ic
"github.com/ipfs/go-libp2p-crypto"
peer
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
ma
"github.com/jbenet/go-multiaddr"
"github.com/jbenet/goprocess"
"github.com/jbenet/goprocess"
goprocessctx
"github.com/jbenet/goprocess/context"
goprocessctx
"github.com/jbenet/goprocess/context"
ic
"github.com/libp2p/go-libp2p-crypto"
inet
"github.com/libp2p/go-libp2p-net"
inet
"github.com/libp2p/go-libp2p-net"
peer
"github.com/libp2p/go-libp2p-peer"
pstore
"github.com/libp2p/go-libp2p-peerstore"
testutil
"github.com/libp2p/go-testutil"
testutil
"github.com/libp2p/go-testutil"
ma
"github.com/multiformats/go-multiaddr"
)
)
// mocknet implements mocknet.Mocknet
// mocknet implements mocknet.Mocknet
...
...
p2p/net/mock/mock_notif_test.go
View file @
70872ff6
...
@@ -5,9 +5,9 @@ import (
...
@@ -5,9 +5,9 @@ import (
"testing"
"testing"
"time"
"time"
peer
"github.com/ipfs/go-libp2p-peer"
ma
"github.com/jbenet/go-multiaddr"
inet
"github.com/libp2p/go-libp2p-net"
inet
"github.com/libp2p/go-libp2p-net"
peer
"github.com/libp2p/go-libp2p-peer"
ma
"github.com/multiformats/go-multiaddr"
)
)
func
TestNotifications
(
t
*
testing
.
T
)
{
func
TestNotifications
(
t
*
testing
.
T
)
{
...
...
p2p/net/mock/mock_peernet.go
View file @
70872ff6
...
@@ -6,12 +6,12 @@ import (
...
@@ -6,12 +6,12 @@ import (
"math/rand"
"math/rand"
"sync"
"sync"
peer
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
ma
"github.com/jbenet/go-multiaddr"
"github.com/jbenet/goprocess"
"github.com/jbenet/goprocess"
goprocessctx
"github.com/jbenet/goprocess/context"
goprocessctx
"github.com/jbenet/goprocess/context"
inet
"github.com/libp2p/go-libp2p-net"
inet
"github.com/libp2p/go-libp2p-net"
peer
"github.com/libp2p/go-libp2p-peer"
pstore
"github.com/libp2p/go-libp2p-peerstore"
ma
"github.com/multiformats/go-multiaddr"
)
)
// peernet implements inet.Network
// peernet implements inet.Network
...
...
p2p/net/mock/mock_printer.go
View file @
70872ff6
...
@@ -4,8 +4,8 @@ import (
...
@@ -4,8 +4,8 @@ import (
"fmt"
"fmt"
"io"
"io"
peer
"github.com/ipfs/go-libp2p-peer"
inet
"github.com/libp2p/go-libp2p-net"
inet
"github.com/libp2p/go-libp2p-net"
peer
"github.com/libp2p/go-libp2p-peer"
)
)
// separate object so our interfaces are separate :)
// separate object so our interfaces are separate :)
...
...
p2p/net/mock/mock_test.go
View file @
70872ff6
...
@@ -12,8 +12,8 @@ import (
...
@@ -12,8 +12,8 @@ import (
inet
"github.com/libp2p/go-libp2p-net"
inet
"github.com/libp2p/go-libp2p-net"
peer
"github.com/ipfs/go-libp2p-peer"
detectrace
"github.com/jbenet/go-detect-race"
detectrace
"github.com/jbenet/go-detect-race"
peer
"github.com/libp2p/go-libp2p-peer"
protocol
"github.com/libp2p/go-libp2p-protocol"
protocol
"github.com/libp2p/go-libp2p-protocol"
testutil
"github.com/libp2p/go-testutil"
testutil
"github.com/libp2p/go-testutil"
)
)
...
...
p2p/net/swarm/dial_sync.go
View file @
70872ff6
...
@@ -4,7 +4,7 @@ import (
...
@@ -4,7 +4,7 @@ import (
"context"
"context"
"sync"
"sync"
peer
"github.com/
ipfs
/go-libp2p-peer"
peer
"github.com/
libp2p
/go-libp2p-peer"
)
)
type
DialFunc
func
(
context
.
Context
,
peer
.
ID
)
(
*
Conn
,
error
)
type
DialFunc
func
(
context
.
Context
,
peer
.
ID
)
(
*
Conn
,
error
)
...
...
p2p/net/swarm/dial_sync_test.go
View file @
70872ff6
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"testing"
"testing"
"time"
"time"
peer
"github.com/
ipfs
/go-libp2p-peer"
peer
"github.com/
libp2p
/go-libp2p-peer"
)
)
func
getMockDialFunc
()
(
DialFunc
,
func
(),
context
.
Context
,
<-
chan
struct
{})
{
func
getMockDialFunc
()
(
DialFunc
,
func
(),
context
.
Context
,
<-
chan
struct
{})
{
...
...
p2p/net/swarm/dial_test.go
View file @
70872ff6
...
@@ -7,13 +7,13 @@ import (
...
@@ -7,13 +7,13 @@ import (
"testing"
"testing"
"time"
"time"
peer
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
ma
"github.com/jbenet/go-multiaddr"
manet
"github.com/jbenet/go-multiaddr-net"
addrutil
"github.com/libp2p/go-addr-util"
addrutil
"github.com/libp2p/go-addr-util"
peer
"github.com/libp2p/go-libp2p-peer"
pstore
"github.com/libp2p/go-libp2p-peerstore"
testutil
"github.com/libp2p/go-testutil"
testutil
"github.com/libp2p/go-testutil"
ci
"github.com/libp2p/go-testutil/ci"
ci
"github.com/libp2p/go-testutil/ci"
ma
"github.com/multiformats/go-multiaddr"
manet
"github.com/multiformats/go-multiaddr-net"
)
)
func
closeSwarms
(
swarms
[]
*
Swarm
)
{
func
closeSwarms
(
swarms
[]
*
Swarm
)
{
...
...
Prev
1
2
3
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