Juan Batiz-Benet
3b15457cf0
renamed datastore.go -> go-datastore
2014-10-21 15:10:58 -07:00
Juan Batiz-Benet
28e083b902
peer.Peer is now an interface
...

2014-10-20 03:26:46 -07:00
Juan Batiz-Benet
e98bb76b0f
peerstore constructs peers
...
Now, all peers should be retrieved from the Peerstore, which will
construct the peers accordingly. This ensures there's only one peer
object per peer (opposite would be bad: things get out sync)
cc @whyrusleeping
2014-10-20 00:44:44 -07:00
Jeromy
f138a875b5
small changes to auxiliary dht functions
2014-10-18 04:28:26 -07:00
Jeromy
9dbba5c6d0
some dht cleanup, and make DHTs take a master context
2014-10-18 04:28:26 -07:00
Jeromy
34452f1678
fix bug in diagnostics, and add more peers to closer peer responses
2014-10-18 04:28:25 -07:00
Jeromy
c4d9c231dd
fix up FindProvidersAsync
2014-10-18 04:28:25 -07:00
Juan Batiz-Benet
4429ee65e3
logging + tweaks
2014-10-18 04:28:24 -07:00
Juan Batiz-Benet
5fe1399bab
dht handleAddProviders adds addr in msg
...
Otherwise don't have the peer's target address.
2014-10-18 04:28:24 -07:00
Jeromy
52fca5a91e
add in some extra debug logging, and increase routing table latencies
2014-10-08 21:55:50 +00:00
Juan Batiz-Benet
740b381804
changed logging, in dht and elsewhere
...
- use log.* instead of u.*
- use automatic type conversions to .String()
(Peer.String() prints nicely, and avoids calling b58 encoding
until needed)
2014-10-07 21:33:59 -07:00
Juan Batiz-Benet
d50c42566f
Obviated need for .ID.Pretty()
all over the place.
2014-10-06 04:23:55 -07:00
Juan Batiz-Benet
84781abf54
loggers: set level
2014-10-04 03:53:21 -07:00
Juan Batiz-Benet
8c1bd59fb4
initialize loggers at ERROR
2014-10-04 03:36:30 -07:00
Juan Batiz-Benet
129ac6aaa6
use string datastore keys.
2014-10-03 15:39:22 -07:00
Juan Batiz-Benet
da0d3be852
vendoring ipns things
2014-10-01 00:44:22 -07:00
Jeromy
8815a7c482
implement publisher for ipns to wait until moments of rapid churn die down
2014-10-01 00:42:17 -07:00
Jeromy
1959218b91
update logging in multiple packages
2014-10-01 00:41:30 -07:00
Jeromy
9dc86ca5cb
add basic publish command, needs polish
2014-10-01 00:39:57 -07:00
Jeromy
e223f19a9c
catch ipns branch up to master and make all things compile
2014-10-01 00:37:53 -07:00
Brian Tiger Chow
0094145c29
feat(net:service, routing) remove error return value
2014-09-24 23:35:36 -04:00
Juan Batiz-Benet
a62411035e
Routing uses context now
...
@perfmode boom
2014-09-22 04:06:18 -07:00
Juan Batiz-Benet
0a9810a150
dht tests pass again
2014-09-22 04:06:16 -07:00
Juan Batiz-Benet
b0fbaeeef4
provider testing
2014-09-22 04:06:15 -07:00
Juan Batiz-Benet
34e171e2b3
fixed get/put
2014-09-22 04:06:12 -07:00
Juan Batiz-Benet
709f932e6e
Fixed connections all over.
2014-09-22 04:06:12 -07:00
Juan Batiz-Benet
bad7b6d460
dht.Connect(Peer)
2014-09-22 04:06:12 -07:00
Juan Batiz-Benet
45796e5fdf
remove start
2014-09-22 04:05:23 -07:00
Juan Batiz-Benet
b5f0a42bd6
better query processing (runner)
2014-09-22 04:05:22 -07:00
Juan Batiz-Benet
fdea4d9c5f
got everything to build
2014-09-22 04:05:21 -07:00
Juan Batiz-Benet
fa2b736bbe
newMessage and more impl.
2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
e85011ab43
updated Update function
2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
9d0ba89b9a
getFromPeerList and peerFromInfo
2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
3867e32181
add Peerstore to dht
2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
da908bed0e
Peerstore -- threadsafe collection
...
this will later have persistent storage, but no need yet
2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
6c1cdb39b5
getValueSingle using SendRequest
2014-09-22 04:05:18 -07:00
Juan Batiz-Benet
d13b445da9
check type assertion
...
`v.([]byte)` coming from a datastore can panic.
`byt, ok := v.([]byte)` to be safe.
@whyrusleeping
2014-09-22 04:05:18 -07:00
Juan Batiz-Benet
6ed2d45182
moved handlers to own file
2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
f5d1d35710
comment out diagnostic
...
it'll have to change lots since the listener is gone
2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
7c8c19c565
refactor peer distance search + handleGetProviders
2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
9dff985f96
ping + find peer
2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
d49c352d5e
lint nit
2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
cc85969fc5
refactor symbol
2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
fcc6fccf67
handleGetValue
2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
0c4b37be8f
starting on dht-- msg handler
2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
caeecd0f43
starting to integrate new net
2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
9f04d5e839
godeps multiaddr + swarm move.
2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
66683e0417
network.Find -> network.GetPeer
2014-09-22 04:05:11 -07:00
Juan Batiz-Benet
0fa9069b14
Drop -> CloseConnection
2014-09-22 04:05:11 -07:00
Brian Tiger Chow
531769861d
vendor dependencies with godep
...
dependencies are vendored into Godeps/_workspace and commit versions are
recorded in Godeps.json
update datastore to e89f0511
update go.crypto
2014-09-09 22:39:42 -07:00