-
Felix Lange authored
* 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
7c4a4eb5
Name |
Last commit
|
Last update |
---|---|---|
.github | Loading commit data... | |
accounts | ||
build | ||
cmd | ||
common | ||
consensus | ||
console | ||
contracts/checkpointoracle | ||
core | ||
crypto | ||
docs/audits | ||
eth | ||
ethclient | ||
ethdb | ||
ethstats | ||
event | ||
graphql | ||
internal | ||
les | ||
light | ||
log | ||
metrics | ||
miner | ||
mobile | ||
node | ||
p2p | ||
params | ||
rlp | ||
rpc | ||
signer | ||
swarm | ||
tests | ||
trie | ||
vendor | ||
whisper | ||
.dockerignore | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.mailmap | ||
.travis.yml | ||
AUTHORS | ||
COPYING | ||
COPYING.LESSER | ||
Dockerfile | ||
Dockerfile.alltools | ||
Makefile | ||
README.md | ||
SECURITY.md | ||
appveyor.yml | ||
circle.yml | ||
interfaces.go |