routerrpc: format proto

This commit is contained in:
Oliver Gugger 2020-06-03 17:36:08 +02:00
parent f48b0289f5
commit 19e3dc6378
No known key found for this signature in database
GPG Key ID: 8E4256593F177720
3 changed files with 14 additions and 12 deletions

@ -1940,9 +1940,10 @@ type RouterClient interface {
//SendToRouteV2 in that it doesn't return the full HTLC information. //SendToRouteV2 in that it doesn't return the full HTLC information.
SendToRoute(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendToRouteResponse, error) SendToRoute(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendToRouteResponse, error)
// //
//SendToRouteV2 attempts to make a payment via the specified route. This method //SendToRouteV2 attempts to make a payment via the specified route. This
//differs from SendPayment in that it allows users to specify a full route //method differs from SendPayment in that it allows users to specify a full
//manually. This can be used for things like rebalancing, and atomic swaps. //route manually. This can be used for things like rebalancing, and atomic
//swaps.
SendToRouteV2(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*lnrpc.HTLCAttempt, error) SendToRouteV2(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*lnrpc.HTLCAttempt, error)
// //
//ResetMissionControl clears all mission control state and starts with a clean //ResetMissionControl clears all mission control state and starts with a clean
@ -2233,9 +2234,10 @@ type RouterServer interface {
//SendToRouteV2 in that it doesn't return the full HTLC information. //SendToRouteV2 in that it doesn't return the full HTLC information.
SendToRoute(context.Context, *SendToRouteRequest) (*SendToRouteResponse, error) SendToRoute(context.Context, *SendToRouteRequest) (*SendToRouteResponse, error)
// //
//SendToRouteV2 attempts to make a payment via the specified route. This method //SendToRouteV2 attempts to make a payment via the specified route. This
//differs from SendPayment in that it allows users to specify a full route //method differs from SendPayment in that it allows users to specify a full
//manually. This can be used for things like rebalancing, and atomic swaps. //route manually. This can be used for things like rebalancing, and atomic
//swaps.
SendToRouteV2(context.Context, *SendToRouteRequest) (*lnrpc.HTLCAttempt, error) SendToRouteV2(context.Context, *SendToRouteRequest) (*lnrpc.HTLCAttempt, error)
// //
//ResetMissionControl clears all mission control state and starts with a clean //ResetMissionControl clears all mission control state and starts with a clean

@ -40,9 +40,10 @@ service Router {
} }
/* /*
SendToRouteV2 attempts to make a payment via the specified route. This method SendToRouteV2 attempts to make a payment via the specified route. This
differs from SendPayment in that it allows users to specify a full route method differs from SendPayment in that it allows users to specify a full
manually. This can be used for things like rebalancing, and atomic swaps. route manually. This can be used for things like rebalancing, and atomic
swaps.
*/ */
rpc SendToRouteV2 (SendToRouteRequest) returns (lnrpc.HTLCAttempt); rpc SendToRouteV2 (SendToRouteRequest) returns (lnrpc.HTLCAttempt);
@ -82,7 +83,7 @@ service Router {
returns (stream HtlcEvent); returns (stream HtlcEvent);
/* /*
Deprecated, use SendPaymentV2. SendPayment attempts to route a payment Deprecated, use SendPaymentV2. SendPayment attempts to route a payment
described by the passed PaymentRequest to the final destination. The call described by the passed PaymentRequest to the final destination. The call
returns a stream of payment status updates. returns a stream of payment status updates.
*/ */
@ -578,4 +579,3 @@ message PaymentStatus {
*/ */
repeated lnrpc.HTLCAttempt htlcs = 4; repeated lnrpc.HTLCAttempt htlcs = 4;
} }

@ -216,7 +216,7 @@
}, },
"/v2/router/route/send": { "/v2/router/route/send": {
"post": { "post": {
"summary": "SendToRouteV2 attempts to make a payment via the specified route. This method\ndiffers from SendPayment in that it allows users to specify a full route\nmanually. This can be used for things like rebalancing, and atomic swaps.", "summary": "SendToRouteV2 attempts to make a payment via the specified route. This\nmethod differs from SendPayment in that it allows users to specify a full\nroute manually. This can be used for things like rebalancing, and atomic\nswaps.",
"operationId": "SendToRouteV2", "operationId": "SendToRouteV2",
"responses": { "responses": {
"200": { "200": {