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
52a09256
Commit
52a09256
authored
Nov 15, 2015
by
Jeromy
Browse files
vendor go-ipfs-util
parent
ebd0a2df
Changes
27
Hide whitespace changes
Inline
Side-by-side
vendor/util/eventlog/
loggables/loggables.go
→
loggables/loggables.go
View file @
52a09256
File moved
p2p/crypto/key.go
View file @
52a09256
...
@@ -24,7 +24,7 @@ import (
...
@@ -24,7 +24,7 @@ import (
proto
"QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
proto
"QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
u
"util"
u
"
Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE/go-ipfs-
util"
)
)
var
log
=
logging
.
Logger
(
"crypto"
)
var
log
=
logging
.
Logger
(
"crypto"
)
...
...
p2p/crypto/secio/protocol.go
View file @
52a09256
...
@@ -11,11 +11,11 @@ import (
...
@@ -11,11 +11,11 @@ import (
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
u
"Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE/go-ipfs-util"
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"
msgio
"github.com/jbenet/go-msgio"
u
"util"
)
)
var
log
=
logging
.
Logger
(
"secio"
)
var
log
=
logging
.
Logger
(
"secio"
)
...
...
p2p/host/basic/natmgr.go
View file @
52a09256
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
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"
lgbl
"
util/eventlog
/loggables"
lgbl
"
github.com/ipfs/go-libp2p
/loggables"
)
)
// 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 @
52a09256
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
lgbl
"
util/eventlog
/loggables"
lgbl
"
github.com/ipfs/go-libp2p
/loggables"
host
"github.com/ipfs/go-libp2p/p2p/host"
host
"github.com/ipfs/go-libp2p/p2p/host"
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
...
...
p2p/net/conn/conn.go
View file @
52a09256
...
@@ -9,12 +9,12 @@ import (
...
@@ -9,12 +9,12 @@ import (
manet
"QmRCPT5WRph8aWXmaT2Rfn6ac98YRUUJnNURpD3hNAWp4f/go-multiaddr-net"
manet
"QmRCPT5WRph8aWXmaT2Rfn6ac98YRUUJnNURpD3hNAWp4f/go-multiaddr-net"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
u
"Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE/go-ipfs-util"
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"
u
"util"
lgbl
"github.com/ipfs/go-libp2p/loggables"
lgbl
"util/eventlog/loggables"
)
)
var
log
=
logging
.
Logger
(
"conn"
)
var
log
=
logging
.
Logger
(
"conn"
)
...
...
p2p/net/conn/dial.go
View file @
52a09256
...
@@ -8,7 +8,7 @@ import (
...
@@ -8,7 +8,7 @@ import (
manet
"QmRCPT5WRph8aWXmaT2Rfn6ac98YRUUJnNURpD3hNAWp4f/go-multiaddr-net"
manet
"QmRCPT5WRph8aWXmaT2Rfn6ac98YRUUJnNURpD3hNAWp4f/go-multiaddr-net"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
lgbl
"
util/eventlog
/loggables"
lgbl
"
github.com/ipfs/go-libp2p
/loggables"
ci
"github.com/ipfs/go-libp2p/p2p/crypto"
ci
"github.com/ipfs/go-libp2p/p2p/crypto"
addrutil
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
addrutil
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
...
...
p2p/net/swarm/swarm_dial.go
View file @
52a09256
...
@@ -12,7 +12,7 @@ import (
...
@@ -12,7 +12,7 @@ import (
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
addrutil
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
addrutil
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
lgbl
"
util/eventlog
/loggables"
lgbl
"
github.com/ipfs/go-libp2p
/loggables"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
...
...
p2p/net/swarm/swarm_listen.go
View file @
52a09256
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
inet
"github.com/ipfs/go-libp2p/p2p/net"
inet
"github.com/ipfs/go-libp2p/p2p/net"
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
transport
"github.com/ipfs/go-libp2p/p2p/net/transport"
transport
"github.com/ipfs/go-libp2p/p2p/net/transport"
lgbl
"
util/eventlog
/loggables"
lgbl
"
github.com/ipfs/go-libp2p
/loggables"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
...
...
p2p/net/transport/tcp.go
View file @
52a09256
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
reuseport
"github.com/jbenet/go-reuseport"
reuseport
"github.com/jbenet/go-reuseport"
lgbl
"
util/eventlog
/loggables"
lgbl
"
github.com/ipfs/go-libp2p
/loggables"
)
)
type
TcpTransport
struct
{
type
TcpTransport
struct
{
...
...
p2p/peer/peer.go
View file @
52a09256
...
@@ -12,8 +12,8 @@ import (
...
@@ -12,8 +12,8 @@ import (
mh
"QmdsKjp5fcCT8PZ8JBMcdFsCbbmKwSLCU5xXbsnwb5DMxy/go-multihash"
mh
"QmdsKjp5fcCT8PZ8JBMcdFsCbbmKwSLCU5xXbsnwb5DMxy/go-multihash"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
u
"Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE/go-ipfs-util"
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
u
"util"
)
)
var
log
=
logging
.
Logger
(
"peer"
)
var
log
=
logging
.
Logger
(
"peer"
)
...
...
p2p/peer/peer_test.go
View file @
52a09256
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
ic
"github.com/ipfs/go-libp2p/p2p/crypto"
.
"github.com/ipfs/go-libp2p/p2p/peer"
.
"github.com/ipfs/go-libp2p/p2p/peer"
tu
"github.com/ipfs/go-libp2p/testutil"
tu
"github.com/ipfs/go-libp2p/testutil"
u
"util"
u
"
Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE/go-ipfs-
util"
b58
"QmNsoHoCVhgXcv1Yg45jtkMgimxorTAN36fV9AQMFXHHAQ/go-base58"
b58
"QmNsoHoCVhgXcv1Yg45jtkMgimxorTAN36fV9AQMFXHHAQ/go-base58"
)
)
...
...
p2p/peer/queue/queue_test.go
View file @
52a09256
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"time"
"time"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
u
"util"
u
"
Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE/go-ipfs-
util"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
)
)
...
...
p2p/protocol/identify/id.go
View file @
52a09256
...
@@ -17,7 +17,7 @@ import (
...
@@ -17,7 +17,7 @@ import (
pb
"github.com/ipfs/go-libp2p/p2p/protocol/identify/pb"
pb
"github.com/ipfs/go-libp2p/p2p/protocol/identify/pb"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
lgbl
"
util/eventlog
/loggables"
lgbl
"
github.com/ipfs/go-libp2p
/loggables"
)
)
var
log
=
logging
.
Logger
(
"net/identify"
)
var
log
=
logging
.
Logger
(
"net/identify"
)
...
...
p2p/protocol/ping/ping.go
View file @
52a09256
...
@@ -7,12 +7,12 @@ import (
...
@@ -7,12 +7,12 @@ import (
"time"
"time"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
u
"Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE/go-ipfs-util"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
host
"github.com/ipfs/go-libp2p/p2p/host"
host
"github.com/ipfs/go-libp2p/p2p/host"
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"
u
"util"
)
)
var
log
=
logging
.
Logger
(
"ping"
)
var
log
=
logging
.
Logger
(
"ping"
)
...
...
p2p/test/backpressure/backpressure_test.go
View file @
52a09256
...
@@ -14,7 +14,7 @@ import (
...
@@ -14,7 +14,7 @@ import (
testutil
"github.com/ipfs/go-libp2p/p2p/test/util"
testutil
"github.com/ipfs/go-libp2p/p2p/test/util"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
u
"util"
u
"
Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE/go-ipfs-
util"
)
)
var
log
=
logging
.
Logger
(
"backpressure"
)
var
log
=
logging
.
Logger
(
"backpressure"
)
...
...
p2p/test/reconnects/reconnect_test.go
View file @
52a09256
...
@@ -13,7 +13,7 @@ import (
...
@@ -13,7 +13,7 @@ import (
swarm
"github.com/ipfs/go-libp2p/p2p/net/swarm"
swarm
"github.com/ipfs/go-libp2p/p2p/net/swarm"
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"
u
"util"
u
"
Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE/go-ipfs-
util"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ps
"github.com/jbenet/go-peerstream"
ps
"github.com/jbenet/go-peerstream"
...
...
p2p/test/util/key.go
View file @
52a09256
...
@@ -6,8 +6,8 @@ import (
...
@@ -6,8 +6,8 @@ import (
"testing"
"testing"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
u
"Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE/go-ipfs-util"
testutil
"github.com/ipfs/go-libp2p/testutil"
testutil
"github.com/ipfs/go-libp2p/testutil"
u
"util"
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"
...
...
package.json
View file @
52a09256
...
@@ -32,6 +32,11 @@
...
@@ -32,6 +32,11 @@
"name"
:
"go-notifier"
,
"name"
:
"go-notifier"
,
"hash"
:
"QmUtEiB6DmXs7eLJiwS9YFyTAtptqzaWutxCsjHy7UKEgo"
,
"hash"
:
"QmUtEiB6DmXs7eLJiwS9YFyTAtptqzaWutxCsjHy7UKEgo"
,
"version"
:
"1.0.0"
"version"
:
"1.0.0"
},
{
"name"
:
"go-ipfs-util"
,
"hash"
:
"Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE"
,
"version"
:
"1.0.0"
}
}
],
],
"language"
:
"go"
"language"
:
"go"
...
...
testutil/gen.go
View file @
52a09256
...
@@ -8,9 +8,9 @@ import (
...
@@ -8,9 +8,9 @@ import (
"sync"
"sync"
"testing"
"testing"
u
"Qmah3kfjwhVxBM4qGnrqJTqGzrF8svwByyhExPipA2U6LE/go-ipfs-util"
ci
"github.com/ipfs/go-libp2p/p2p/crypto"
ci
"github.com/ipfs/go-libp2p/p2p/crypto"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
u
"util"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
)
)
...
...
Prev
1
2
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