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
0c73722a
Commit
0c73722a
authored
Nov 15, 2015
by
Jeromy
Browse files
vendor in notifier
parent
d4b42f8e
Changes
82
Show whitespace changes
Inline
Side-by-side
p2p/crypto/secio/interface.go
View file @
0c73722a
...
@@ -6,9 +6,9 @@ import (
...
@@ -6,9 +6,9 @@ import (
ci
"github.com/ipfs/go-libp2p/p2p/crypto"
ci
"github.com/ipfs/go-libp2p/p2p/crypto"
msgio
"github.com/jbenet/go-msgio"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"golang.org/x/net/context"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
msgio
"github.com/jbenet/go-msgio"
)
)
// SessionGenerator constructs secure communication sessions for a peer.
// SessionGenerator constructs secure communication sessions for a peer.
...
...
p2p/crypto/secio/protocol.go
View file @
0c73722a
...
@@ -9,13 +9,13 @@ import (
...
@@ -9,13 +9,13 @@ import (
"sync"
"sync"
"time"
"time"
msgio
"github.com/jbenet/go-msgio
"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log
"
context
"
golang.org/x/ne
t/context"
context
"
QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUc
t/context"
ci
"github.com/ipfs/go-libp2p/p2p/crypto"
ci
"github.com/ipfs/go-libp2p/p2p/crypto"
pb
"github.com/ipfs/go-libp2p/p2p/crypto/secio/pb"
pb
"github.com/ipfs/go-libp2p/p2p/crypto/secio/pb"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
msgio
"github.com/jbenet/go-msgio"
u
"util"
u
"util"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
)
)
var
log
=
logging
.
Logger
(
"secio"
)
var
log
=
logging
.
Logger
(
"secio"
)
...
...
p2p/crypto/secio/rw.go
View file @
0c73722a
...
@@ -9,10 +9,10 @@ import (
...
@@ -9,10 +9,10 @@ import (
"crypto/hmac"
"crypto/hmac"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
proto
"QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
proto
"QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
msgio
"github.com/jbenet/go-msgio"
msgio
"github.com/jbenet/go-msgio"
mpool
"github.com/jbenet/go-msgio/mpool"
mpool
"github.com/jbenet/go-msgio/mpool"
context
"golang.org/x/net/context"
)
)
const
MaxMsgSize
=
8
*
1024
*
1024
const
MaxMsgSize
=
8
*
1024
*
1024
...
...
p2p/host/basic/basic_host.go
View file @
0c73722a
...
@@ -3,12 +3,12 @@ package basichost
...
@@ -3,12 +3,12 @@ package basichost
import
(
import
(
"io"
"io"
goprocess
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
mstream
"github.com/ipfs/go-libp2p/p2p/metrics/stream"
mstream
"github.com/ipfs/go-libp2p/p2p/metrics/stream"
goprocess
"github.com/jbenet/goprocess"
context
"golang.org/x/net/context"
inet
"github.com/ipfs/go-libp2p/p2p/net"
inet
"github.com/ipfs/go-libp2p/p2p/net"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
...
...
p2p/host/basic/basic_host_test.go
View file @
0c73722a
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
protocol
"github.com/ipfs/go-libp2p/p2p/protocol"
protocol
"github.com/ipfs/go-libp2p/p2p/protocol"
testutil
"github.com/ipfs/go-libp2p/p2p/test/util"
testutil
"github.com/ipfs/go-libp2p/p2p/test/util"
context
"
golang.org/x/ne
t/context"
context
"
QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUc
t/context"
)
)
func
TestHostSimple
(
t
*
testing
.
T
)
{
func
TestHostSimple
(
t
*
testing
.
T
)
{
...
...
p2p/host/basic/natmgr.go
View file @
0c73722a
...
@@ -3,9 +3,9 @@ package basichost
...
@@ -3,9 +3,9 @@ package basichost
import
(
import
(
"sync"
"sync"
goprocess
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
goprocess
"github.com/jbenet/goprocess"
context
"golang.org/x/net/context"
inat
"github.com/ipfs/go-libp2p/p2p/nat"
inat
"github.com/ipfs/go-libp2p/p2p/nat"
inet
"github.com/ipfs/go-libp2p/p2p/net"
inet
"github.com/ipfs/go-libp2p/p2p/net"
...
...
p2p/host/host.go
View file @
0c73722a
...
@@ -2,12 +2,12 @@ package host
...
@@ -2,12 +2,12 @@ package host
import
(
import
(
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
inet
"github.com/ipfs/go-libp2p/p2p/net"
inet
"github.com/ipfs/go-libp2p/p2p/net"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
protocol
"github.com/ipfs/go-libp2p/p2p/protocol"
protocol
"github.com/ipfs/go-libp2p/p2p/protocol"
context
"golang.org/x/net/context"
msmux
"github.com/whyrusleeping/go-multistream"
msmux
"github.com/whyrusleeping/go-multistream"
)
)
...
...
p2p/host/routed/routed.go
View file @
0c73722a
...
@@ -5,8 +5,8 @@ import (
...
@@ -5,8 +5,8 @@ import (
"time"
"time"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
lgbl
"util/eventlog/loggables"
lgbl
"util/eventlog/loggables"
host
"github.com/ipfs/go-libp2p/p2p/host"
host
"github.com/ipfs/go-libp2p/p2p/host"
...
...
p2p/nat/nat.go
View file @
0c73722a
...
@@ -11,11 +11,11 @@ import (
...
@@ -11,11 +11,11 @@ import (
manet
"QmU5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q/go-multiaddr-net"
manet
"QmU5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q/go-multiaddr-net"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
goprocess
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess"
periodic
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess/periodic"
notifier
"QmUtEiB6DmXs7eLJiwS9YFyTAtptqzaWutxCsjHy7UKEgo/go-notifier"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
nat
"github.com/fd/go-nat"
nat
"github.com/fd/go-nat"
goprocess
"github.com/jbenet/goprocess"
periodic
"github.com/jbenet/goprocess/periodic"
notifier
"thirdparty/notifier"
)
)
var
(
var
(
...
...
p2p/net/conn/conn.go
View file @
0c73722a
...
@@ -8,11 +8,11 @@ import (
...
@@ -8,11 +8,11 @@ import (
manet
"QmU5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q/go-multiaddr-net"
manet
"QmU5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q/go-multiaddr-net"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
mpool
"github.com/jbenet/go-msgio/mpool"
mpool
"github.com/jbenet/go-msgio/mpool"
context
"golang.org/x/net/context"
u
"util"
u
"util"
lgbl
"util/eventlog/loggables"
lgbl
"util/eventlog/loggables"
)
)
...
...
p2p/net/conn/conn_test.go
View file @
0c73722a
...
@@ -8,8 +8,8 @@ import (
...
@@ -8,8 +8,8 @@ import (
"testing"
"testing"
"time"
"time"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
msgio
"github.com/jbenet/go-msgio"
msgio
"github.com/jbenet/go-msgio"
context
"golang.org/x/net/context"
travis
"util/testutil/ci/travis"
travis
"util/testutil/ci/travis"
)
)
...
...
p2p/net/conn/dial.go
View file @
0c73722a
...
@@ -6,8 +6,8 @@ import (
...
@@ -6,8 +6,8 @@ import (
"strings"
"strings"
manet
"QmU5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q/go-multiaddr-net"
manet
"QmU5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q/go-multiaddr-net"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
lgbl
"util/eventlog/loggables"
lgbl
"util/eventlog/loggables"
ci
"github.com/ipfs/go-libp2p/p2p/crypto"
ci
"github.com/ipfs/go-libp2p/p2p/crypto"
...
...
p2p/net/conn/dial_test.go
View file @
0c73722a
...
@@ -13,8 +13,8 @@ import (
...
@@ -13,8 +13,8 @@ import (
peer
"github.com/ipfs/go-libp2p/p2p/peer"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
tu
"util/testutil"
tu
"util/testutil"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
)
)
func
echoListen
(
ctx
context
.
Context
,
listener
Listener
)
{
func
echoListen
(
ctx
context
.
Context
,
listener
Listener
)
{
...
...
p2p/net/conn/listen.go
View file @
0c73722a
...
@@ -5,11 +5,11 @@ import (
...
@@ -5,11 +5,11 @@ import (
"io"
"io"
"net"
"net"
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess"
goprocessctx
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
tec
"github.com/jbenet/go-temp-err-catcher"
tec
"github.com/jbenet/go-temp-err-catcher"
"github.com/jbenet/goprocess"
goprocessctx
"github.com/jbenet/goprocess/context"
context
"golang.org/x/net/context"
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
filter
"github.com/ipfs/go-libp2p/p2p/net/filter"
filter
"github.com/ipfs/go-libp2p/p2p/net/filter"
...
...
p2p/net/conn/secure_conn.go
View file @
0c73722a
...
@@ -5,8 +5,8 @@ import (
...
@@ -5,8 +5,8 @@ import (
"net"
"net"
"time"
"time"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
secio
"github.com/ipfs/go-libp2p/p2p/crypto/secio"
secio
"github.com/ipfs/go-libp2p/p2p/crypto/secio"
...
...
p2p/net/conn/secure_conn_test.go
View file @
0c73722a
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
travis
"util/testutil/ci/travis"
travis
"util/testutil/ci/travis"
context
"
golang.org/x/ne
t/context"
context
"
QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUc
t/context"
)
)
func
upgradeToSecureConn
(
t
*
testing
.
T
,
ctx
context
.
Context
,
sk
ic
.
PrivKey
,
c
Conn
)
(
Conn
,
error
)
{
func
upgradeToSecureConn
(
t
*
testing
.
T
,
ctx
context
.
Context
,
sk
ic
.
PrivKey
,
c
Conn
)
(
Conn
,
error
)
{
...
...
p2p/net/interface.go
View file @
0c73722a
...
@@ -6,9 +6,9 @@ import (
...
@@ -6,9 +6,9 @@ import (
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
"github.com/jbenet/goprocess"
context
"golang.org/x/net/context"
)
)
// MessageSizeMax is a soft (recommended) maximum for network messages.
// MessageSizeMax is a soft (recommended) maximum for network messages.
...
...
p2p/net/mock/mock.go
View file @
0c73722a
...
@@ -3,7 +3,7 @@ package mocknet
...
@@ -3,7 +3,7 @@ package mocknet
import
(
import
(
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
context
"
golang.org/x/ne
t/context"
context
"
QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUc
t/context"
)
)
var
log
=
logging
.
Logger
(
"mocknet"
)
var
log
=
logging
.
Logger
(
"mocknet"
)
...
...
p2p/net/mock/mock_conn.go
View file @
0c73722a
...
@@ -8,8 +8,8 @@ import (
...
@@ -8,8 +8,8 @@ import (
inet
"github.com/ipfs/go-libp2p/p2p/net"
inet
"github.com/ipfs/go-libp2p/p2p/net"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
process
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
process
"github.com/jbenet/goprocess"
)
)
// conn represents one side's perspective of a
// conn represents one side's perspective of a
...
...
p2p/net/mock/mock_net.go
View file @
0c73722a
...
@@ -13,10 +13,10 @@ import (
...
@@ -13,10 +13,10 @@ import (
p2putil
"github.com/ipfs/go-libp2p/p2p/test/util"
p2putil
"github.com/ipfs/go-libp2p/p2p/test/util"
testutil
"util/testutil"
testutil
"util/testutil"
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess"
goprocessctx
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
"github.com/jbenet/goprocess"
goprocessctx
"github.com/jbenet/goprocess/context"
context
"golang.org/x/net/context"
)
)
// mocknet implements mocknet.Mocknet
// mocknet implements mocknet.Mocknet
...
...
Prev
1
2
3
4
5
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