zllovesuki / specter

like ngrok, but more ambitious with DHT for flavor
MIT License
26 stars 1 forks source link

rpc: use twirp over software defined transport for rpc #25

Closed zllovesuki closed 1 year ago

zllovesuki commented 1 year ago

This commit refactor the entire RPC system and use twirp as the framework instead of handrolled rpc. The benefit of codegen and the full http ecosystem makes extending easier.

Other changes in this commit: Makefile: add codegen for twirp and apply vtprotobuf patch where applicable spec/mocks: fix PipeTransport() sending delegation to the wrong end chord: stats handler now shows RPC stats