Juan Batiz-Benet
f2b8803a57
net/service now uses ctxcloser
2014-10-25 21:33:10 -07:00
Juan Batiz-Benet
184c25430b
go-vet friendly codebase
...
- distinguish log.Error and log.Errorf functions
- Initialize structs with field names
- A bit of unreachable code (defers)
2014-10-25 03:46:39 -07:00
Brian Tiger Chow
4d81560dd8
fix(net/service/pb) rename proto package -> service_pb
2014-10-22 15:54:18 -07:00
Brian Tiger Chow
d94e764e4a
refactor(net/service) move proto to internal pb package
2014-10-22 15:54:17 -07:00
Juan Batiz-Benet
9ca87fbb93
peer.Peer is now an interface
...

2014-10-20 03:26:46 -07:00
Juan Batiz-Benet
26c4e5004c
handler fixes for tests
2014-10-10 20:48:20 -07:00
Juan Batiz-Benet
338b037238
clean up and add inet.Network to bitswap
...
new Service interface
2014-10-10 20:43:04 -07:00
Juan Batiz-Benet
972c0f7b4b
u.DOut -> log.Debug
...
and other logging switches. I kept the u.PErr and u.POut in cli
commands, as those do need to write raw output directly.
2014-10-09 04:50:22 -07:00
Juan Batiz-Benet
77fccaa2f3
Obviated need for .ID.Pretty() all over the place.
2014-10-06 04:23:55 -07:00
Brian Tiger Chow
e2a9c5de00
feat(net:service, routing) remove error return value
2014-09-24 23:35:36 -04:00
Juan Batiz-Benet
9dd39de491
Fixed connections all over.
2014-09-22 04:06:12 -07:00
Juan Batiz-Benet
25d0ce8fdd
NoResponse service
2014-09-22 04:05:23 -07:00
Brian Tiger Chow
503b1aa79e
feat(net:service) add SetHandler method
...
Allows the service to be used through an interface.
NB: If the handler is exposed directly, clients of the service cannot swap out their concrete references and replace them with interfaces
2014-09-22 04:05:18 -07:00
Juan Batiz-Benet
bccb3e871b
goroutine note comment
2014-09-22 04:05:16 -07:00
Juan Batiz-Benet
9849794b07
Move Sender interface to network pkg
...
@perfmode sender is exactly what we need to pass in to dht/bitswap.
2014-09-22 04:05:16 -07:00
Juan Batiz-Benet
c7148cd83c
Service: remove RequestID from SendMessage
2014-09-22 04:05:16 -07:00
Juan Batiz-Benet
cb230b69a2
bugfix: service has a Start func
...
We were issuing handling goroutines in both NewService and Start
2014-09-22 04:05:16 -07:00
Juan Batiz-Benet
f9650a7906
allow service to have nil handler
...
@perfmode this means we can create a Service first, give it to
the network and protocol (removing interdep).
2014-09-22 04:05:16 -07:00
Brian Tiger Chow
b17bc2d54c
feat(net:service) add sender interface
2014-09-22 04:05:15 -07:00
Brian Tiger Chow
add0f3f935
feat(net:message) get net package from e2430ae427
...
fix(net:msg) use vendored imports
2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
2b03664ae4
net interface
2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
035d600f28
Godeps: use in net + new multiaddr
2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
06b651c454
Service + request
2014-09-22 04:05:12 -07:00