go-pulse/p2p
Felix Lange 7c4a4eb58a rpc, p2p/simulations: use github.com/gorilla/websocket (#20289)
* rpc: improve codec abstraction

rpc.ServerCodec is an opaque interface. There was only one way to get a
codec using existing APIs: rpc.NewJSONCodec. This change exports
newCodec (as NewFuncCodec) and NewJSONCodec (as NewCodec). It also makes
all codec methods non-public to avoid showing internals in godoc.

While here, remove codec options in tests because they are not
supported anymore.

* p2p/simulations: use github.com/gorilla/websocket

This package was the last remaining user of golang.org/x/net/websocket.
Migrating to the new library wasn't straightforward because it is no
longer possible to treat WebSocket connections as a net.Conn.

* vendor: delete golang.org/x/net/websocket

* rpc: fix godoc comments and run gofmt
2019-11-18 10:40:59 +02:00
..
discover cmd/devp2p, p2p: dial using node iterator, discovery crawler (#20132) 2019-10-29 17:08:57 +02:00
discv5 p2p/enode, p2p/discv5: fix URL parsing test for go 1.12.8 (#19963) 2019-08-15 10:36:36 +02:00
dnsdisc p2p/dnsdisc: update to latest EIP-1459 spec (#20168) 2019-10-16 14:35:24 +03:00
enode p2p/enode: mock DNS resolver in URL parsing test (#20252) 2019-11-07 16:40:37 +01:00
enr core/forkid: implement the forkid EIP, announce via ENR (#19738) 2019-07-08 18:53:47 +03:00
nat p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
netutil all: update author list and licenses 2019-07-22 12:17:27 +03:00
simulations rpc, p2p/simulations: use github.com/gorilla/websocket (#20289) 2019-11-18 10:40:59 +02:00
testing all: update author list and licenses 2019-07-22 12:17:27 +03:00
dial_test.go cmd/devp2p, p2p: dial using node iterator, discovery crawler (#20132) 2019-10-29 17:08:57 +02:00
dial.go dashboard: send current block to the dashboard client (#19762) 2019-11-13 12:13:13 +01:00
message_test.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
message.go p2p: measure subprotocol bandwidth usage 2019-09-27 18:00:25 +03:00
metrics.go dashboard: send current block to the dashboard client (#19762) 2019-11-13 12:13:13 +01:00
peer_error.go p2p: fix some golint warnings (#16577) 2018-05-08 13:08:43 +02:00
peer_test.go p2p: fix bug in TestPeerDisconnect (#20277) 2019-11-13 12:01:52 +01:00
peer.go p2p: measure subprotocol bandwidth usage 2019-09-27 18:00:25 +03:00
protocol.go cmd/devp2p, p2p: dial using node iterator, discovery crawler (#20132) 2019-10-29 17:08:57 +02:00
rlpx_test.go p2p: remove useless parameter (#19433) 2019-04-10 11:49:02 +03:00
rlpx.go p2p: measure subprotocol bandwidth usage 2019-09-27 18:00:25 +03:00
server_test.go cmd/devp2p, p2p: dial using node iterator, discovery crawler (#20132) 2019-10-29 17:08:57 +02:00
server.go dashboard: send current block to the dashboard client (#19762) 2019-11-13 12:13:13 +01:00
util_test.go p2p: enforce connection retry limit on server side (#19684) 2019-06-11 12:45:33 +02:00
util.go p2p: enforce connection retry limit on server side (#19684) 2019-06-11 12:45:33 +02:00