watchtowerrpc: format watchtower.proto and remove json_name fields

We now use the jsonpb marshaler to convert the RPC responses to
JSON in lncli and REST. The jsonpb has a setting to use the
original name as defined in the proto file and the explicit
json_name definition is not necessary any more.
The jsonpb setting is called OrigName and needs to be true.
This commit is contained in:
Oliver Gugger 2020-02-11 14:05:42 +01:00
parent 54fede0ae9
commit ad0fba548f
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -5,24 +5,24 @@ package watchtowerrpc;
option go_package = "github.com/lightningnetwork/lnd/lnrpc/watchtowerrpc"; option go_package = "github.com/lightningnetwork/lnd/lnrpc/watchtowerrpc";
service Watchtower { service Watchtower {
/** lncli: tower info /** lncli: tower info
GetInfo returns general information concerning the companion watchtower GetInfo returns general information concerning the companion watchtower
including it's public key and URIs where the server is currently including it's public key and URIs where the server is currently
listening for clients. listening for clients.
*/ */
rpc GetInfo(GetInfoRequest) returns (GetInfoResponse); rpc GetInfo (GetInfoRequest) returns (GetInfoResponse);
} }
message GetInfoRequest{ message GetInfoRequest {
} }
message GetInfoResponse { message GetInfoResponse {
/// The public key of the watchtower. /// The public key of the watchtower.
bytes pubkey = 1 [json_name = "pubkey"]; bytes pubkey = 1;
/// The listening addresses of the watchtower. /// The listening addresses of the watchtower.
repeated string listeners = 2 [json_name = "listeners"]; repeated string listeners = 2;
/// The URIs of the watchtower. /// The URIs of the watchtower.
repeated string uris = 3 [json_name = "uris" ]; repeated string uris = 3;
} }