2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-08 01:10:29 +00:00
loop/looprpc
carla dad103530f
multi: move server proto files to their own directory
Protobuf does not allow naming conflicts for files within the same
process, because all proto messages register themselves in a global
registry.

This is problematic because the server's itests import the client's
looprpc package to make rpc queries to the loopd client, thus importing
duplicate common.proto and server.proto from the client's looprc package
(since they're both in there as well).

This change moves the server's proto files into their own directory so
that they are not imported when we want to use the client's files. We
cannot change the package name for the server, because that would be
a breaking change (the package name is included in URIS). Fortunately,
we have the go_package option which allows us to place generated files
in a different location.
2021-12-13 13:56:40 +02:00
..
.clang-format multi: move server proto files to their own directory 2021-12-13 13:56:40 +02:00
client_grpc.pb.go loop: add support for the probe API 2021-07-30 13:22:12 +02:00
client.pb.go multi: move server proto files to their own directory 2021-12-13 13:56:40 +02:00
client.pb.gw.go loop: add support for the probe API 2021-07-30 13:22:12 +02:00
client.proto multi: move server proto files to their own directory 2021-12-13 13:56:40 +02:00
client.swagger.json multi: pass private, routehints from loopcli - loopd - loop server 2021-12-07 21:04:07 -05:00
client.yaml loop: add support for the probe API 2021-07-30 13:22:12 +02:00
debug_grpc.pb.go multi: update lnd master with grpc-gateway upgrade 2021-07-29 17:02:06 +02:00
debug.pb.go multi: update lnd master with grpc-gateway upgrade 2021-07-29 17:02:06 +02:00
debug.proto make+looprpc: use Docker to compile and format protos 2021-07-13 09:41:28 +02:00
Dockerfile looprpc: generate JSON/WASM client stubs 2021-08-03 13:18:35 +02:00
gen_protos_docker.sh multi: update lnd master with grpc-gateway upgrade 2021-07-29 17:02:06 +02:00
gen_protos.sh multi: move server proto files to their own directory 2021-12-13 13:56:40 +02:00
swapclient.pb.json.go looprpc: generate JSON/WASM client stubs 2021-08-03 13:18:35 +02:00