2017-08-22 10:07:25 +03:00
|
|
|
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
2016-10-16 00:38:47 +03:00
|
|
|
// source: rpc.proto
|
|
|
|
|
|
|
|
/*
|
|
|
|
Package lnrpc is a reverse proxy.
|
|
|
|
|
|
|
|
It translates gRPC into RESTful JSON APIs.
|
|
|
|
*/
|
|
|
|
package lnrpc
|
|
|
|
|
|
|
|
import (
|
2019-10-30 12:53:21 +03:00
|
|
|
"context"
|
2016-10-16 00:38:47 +03:00
|
|
|
"io"
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/golang/protobuf/proto"
|
|
|
|
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
|
|
|
"github.com/grpc-ecosystem/grpc-gateway/utilities"
|
|
|
|
"google.golang.org/grpc"
|
|
|
|
"google.golang.org/grpc/codes"
|
|
|
|
"google.golang.org/grpc/grpclog"
|
2017-08-22 10:07:25 +03:00
|
|
|
"google.golang.org/grpc/status"
|
2016-10-16 00:38:47 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
var _ codes.Code
|
|
|
|
var _ io.Reader
|
2017-08-22 10:07:25 +03:00
|
|
|
var _ status.Status
|
2016-10-16 00:38:47 +03:00
|
|
|
var _ = runtime.String
|
|
|
|
var _ = utilities.NewDoubleArray
|
|
|
|
|
|
|
|
func request_Lightning_WalletBalance_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq WalletBalanceRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
msg, err := client.WalletBalance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func request_Lightning_ChannelBalance_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ChannelBalanceRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
msg, err := client.ChannelBalance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-05-05 22:10:06 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_GetTransactions_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
func request_Lightning_GetTransactions_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq GetTransactionsRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2020-05-05 22:10:06 +03:00
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_GetTransactions_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
msg, err := client.GetTransactions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-03-05 16:22:30 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_EstimateFee_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
|
|
|
func request_Lightning_EstimateFee_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq EstimateFeeRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_EstimateFee_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.EstimateFee(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
func request_Lightning_SendCoins_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq SendCoinsRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.SendCoins(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-09-27 16:49:44 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_ListUnspent_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
|
|
|
func request_Lightning_ListUnspent_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ListUnspentRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_ListUnspent_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.ListUnspent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-09-28 01:54:59 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_NewAddress_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
|
|
|
func request_Lightning_NewAddress_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq NewAddressRequest
|
2016-10-16 00:38:47 +03:00
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2018-09-28 01:54:59 +03:00
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_NewAddress_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.NewAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
2016-10-16 00:38:47 +03:00
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-11-12 20:55:14 +03:00
|
|
|
func request_Lightning_SignMessage_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq SignMessageRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2018-11-12 20:55:14 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.SignMessage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func request_Lightning_VerifyMessage_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq VerifyMessageRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2018-11-12 20:55:14 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.VerifyMessage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
func request_Lightning_ConnectPeer_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ConnectPeerRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.ConnectPeer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-04-12 00:49:39 +03:00
|
|
|
func request_Lightning_DisconnectPeer_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq DisconnectPeerRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
var (
|
|
|
|
val string
|
|
|
|
ok bool
|
|
|
|
err error
|
|
|
|
_ = err
|
|
|
|
)
|
|
|
|
|
|
|
|
val, ok = pathParams["pub_key"]
|
|
|
|
if !ok {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pub_key")
|
2017-04-12 00:49:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
protoReq.PubKey, err = runtime.String(val)
|
|
|
|
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pub_key", err)
|
2017-04-12 00:49:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.DisconnectPeer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-03-13 10:15:49 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_ListPeers_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
func request_Lightning_ListPeers_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ListPeersRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2020-03-13 10:15:49 +03:00
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_ListPeers_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
msg, err := client.ListPeers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func request_Lightning_GetInfo_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq GetInfoRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
msg, err := client.GetInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func request_Lightning_PendingChannels_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
2018-01-04 23:20:25 +03:00
|
|
|
var protoReq PendingChannelsRequest
|
2016-10-16 00:38:47 +03:00
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
msg, err := client.PendingChannels(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-13 22:11:09 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_ListChannels_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
func request_Lightning_ListChannels_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ListChannelsRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2018-03-13 22:11:09 +03:00
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_ListChannels_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
msg, err := client.ListChannels(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-05-24 12:36:35 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_ClosedChannels_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
|
|
|
func request_Lightning_ClosedChannels_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ClosedChannelsRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_ClosedChannels_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.ClosedChannels(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-11-11 04:33:24 +03:00
|
|
|
func request_Lightning_OpenChannelSync_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
2016-10-16 00:38:47 +03:00
|
|
|
var protoReq OpenChannelRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
2016-11-11 04:33:24 +03:00
|
|
|
msg, err := client.OpenChannelSync(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2018-01-11 22:00:30 +03:00
|
|
|
filter_Lightning_CloseChannel_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_point": 0, "funding_txid_str": 1, "output_index": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}}
|
2016-10-16 00:38:47 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func request_Lightning_CloseChannel_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_CloseChannelClient, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq CloseChannelRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
var (
|
|
|
|
val string
|
|
|
|
ok bool
|
|
|
|
err error
|
|
|
|
_ = err
|
|
|
|
)
|
|
|
|
|
2018-01-11 22:00:30 +03:00
|
|
|
val, ok = pathParams["channel_point.funding_txid_str"]
|
2016-10-16 00:38:47 +03:00
|
|
|
if !ok {
|
2018-01-11 22:00:30 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_point.funding_txid_str")
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
2018-01-11 22:00:30 +03:00
|
|
|
err = runtime.PopulateFieldFromPath(&protoReq, "channel_point.funding_txid_str", val)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
if err != nil {
|
2018-01-11 22:00:30 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_point.funding_txid_str", err)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
val, ok = pathParams["channel_point.output_index"]
|
|
|
|
if !ok {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_point.output_index")
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
err = runtime.PopulateFieldFromPath(&protoReq, "channel_point.output_index", val)
|
|
|
|
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_point.output_index", err)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_CloseChannel_0); err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
stream, err := client.CloseChannel(ctx, &protoReq)
|
|
|
|
if err != nil {
|
|
|
|
return nil, metadata, err
|
|
|
|
}
|
|
|
|
header, err := stream.Header()
|
|
|
|
if err != nil {
|
|
|
|
return nil, metadata, err
|
|
|
|
}
|
|
|
|
metadata.HeaderMD = header
|
|
|
|
return stream, metadata, nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-05-29 12:26:47 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_AbandonChannel_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_point": 0, "funding_txid_str": 1, "output_index": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}}
|
|
|
|
)
|
|
|
|
|
|
|
|
func request_Lightning_AbandonChannel_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq AbandonChannelRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
var (
|
|
|
|
val string
|
|
|
|
ok bool
|
|
|
|
err error
|
|
|
|
_ = err
|
|
|
|
)
|
|
|
|
|
|
|
|
val, ok = pathParams["channel_point.funding_txid_str"]
|
|
|
|
if !ok {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_point.funding_txid_str")
|
|
|
|
}
|
|
|
|
|
|
|
|
err = runtime.PopulateFieldFromPath(&protoReq, "channel_point.funding_txid_str", val)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_point.funding_txid_str", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
val, ok = pathParams["channel_point.output_index"]
|
|
|
|
if !ok {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_point.output_index")
|
|
|
|
}
|
|
|
|
|
|
|
|
err = runtime.PopulateFieldFromPath(&protoReq, "channel_point.output_index", val)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_point.output_index", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_AbandonChannel_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.AbandonChannel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-11-11 04:33:24 +03:00
|
|
|
func request_Lightning_SendPaymentSync_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq SendRequest
|
2016-10-16 00:38:47 +03:00
|
|
|
var metadata runtime.ServerMetadata
|
2016-11-11 04:33:24 +03:00
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
2016-11-11 04:33:24 +03:00
|
|
|
|
|
|
|
msg, err := client.SendPaymentSync(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
2018-01-25 08:08:46 +03:00
|
|
|
func request_Lightning_SendToRouteSync_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq SendToRouteRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2018-01-25 08:08:46 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.SendToRouteSync(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
func request_Lightning_AddInvoice_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq Invoice
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.AddInvoice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-01-22 08:19:24 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_ListInvoices_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
func request_Lightning_ListInvoices_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ListInvoiceRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2018-01-22 08:19:24 +03:00
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_ListInvoices_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.ListInvoices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
filter_Lightning_LookupInvoice_0 = &utilities.DoubleArray{Encoding: map[string]int{"r_hash_str": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
|
|
|
|
)
|
|
|
|
|
|
|
|
func request_Lightning_LookupInvoice_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq PaymentHash
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
var (
|
|
|
|
val string
|
|
|
|
ok bool
|
|
|
|
err error
|
|
|
|
_ = err
|
|
|
|
)
|
|
|
|
|
|
|
|
val, ok = pathParams["r_hash_str"]
|
|
|
|
if !ok {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "r_hash_str")
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
protoReq.RHashStr, err = runtime.String(val)
|
|
|
|
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "r_hash_str", err)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_LookupInvoice_0); err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.LookupInvoice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-04-25 06:41:22 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_SubscribeInvoices_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
func request_Lightning_SubscribeInvoices_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_SubscribeInvoicesClient, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq InvoiceSubscription
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2018-04-25 06:41:22 +03:00
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_SubscribeInvoices_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
stream, err := client.SubscribeInvoices(ctx, &protoReq)
|
|
|
|
if err != nil {
|
|
|
|
return nil, metadata, err
|
|
|
|
}
|
|
|
|
header, err := stream.Header()
|
|
|
|
if err != nil {
|
|
|
|
return nil, metadata, err
|
|
|
|
}
|
|
|
|
metadata.HeaderMD = header
|
|
|
|
return stream, metadata, nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-01-18 00:24:55 +03:00
|
|
|
func request_Lightning_DecodePayReq_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq PayReqString
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
var (
|
|
|
|
val string
|
|
|
|
ok bool
|
|
|
|
err error
|
|
|
|
_ = err
|
|
|
|
)
|
|
|
|
|
|
|
|
val, ok = pathParams["pay_req"]
|
|
|
|
if !ok {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pay_req")
|
2017-01-18 00:24:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
protoReq.PayReq, err = runtime.String(val)
|
|
|
|
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pay_req", err)
|
2017-01-18 00:24:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.DecodePayReq(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-06-11 15:48:47 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_ListPayments_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
2016-12-05 14:59:36 +03:00
|
|
|
func request_Lightning_ListPayments_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ListPaymentsRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-06-11 15:48:47 +03:00
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_ListPayments_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
2016-12-05 14:59:36 +03:00
|
|
|
msg, err := client.ListPayments(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func request_Lightning_DeleteAllPayments_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq DeleteAllPaymentsRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
msg, err := client.DeleteAllPayments(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-09-26 18:26:04 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_DescribeGraph_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
2016-12-27 08:45:01 +03:00
|
|
|
func request_Lightning_DescribeGraph_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ChannelGraphRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2018-09-26 18:26:04 +03:00
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_DescribeGraph_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
2016-12-27 08:45:01 +03:00
|
|
|
msg, err := client.DescribeGraph(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-03-19 13:14:28 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_GetNodeMetrics_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
|
)
|
|
|
|
|
|
|
|
func request_Lightning_GetNodeMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq NodeMetricsRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_GetNodeMetrics_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.GetNodeMetrics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-12-27 08:45:01 +03:00
|
|
|
func request_Lightning_GetChanInfo_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ChanInfoRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
var (
|
|
|
|
val string
|
|
|
|
ok bool
|
|
|
|
err error
|
|
|
|
_ = err
|
|
|
|
)
|
|
|
|
|
|
|
|
val, ok = pathParams["chan_id"]
|
|
|
|
if !ok {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chan_id")
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
protoReq.ChanId, err = runtime.Uint64(val)
|
|
|
|
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chan_id", err)
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.GetChanInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-06-17 20:57:45 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_GetNodeInfo_0 = &utilities.DoubleArray{Encoding: map[string]int{"pub_key": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
|
|
|
|
)
|
|
|
|
|
2016-12-27 08:45:01 +03:00
|
|
|
func request_Lightning_GetNodeInfo_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq NodeInfoRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
var (
|
|
|
|
val string
|
|
|
|
ok bool
|
|
|
|
err error
|
|
|
|
_ = err
|
|
|
|
)
|
|
|
|
|
|
|
|
val, ok = pathParams["pub_key"]
|
|
|
|
if !ok {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pub_key")
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
protoReq.PubKey, err = runtime.String(val)
|
|
|
|
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pub_key", err)
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
|
2019-06-17 20:57:45 +03:00
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_GetNodeInfo_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
2016-12-27 08:45:01 +03:00
|
|
|
msg, err := client.GetNodeInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-02-13 03:28:39 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_QueryRoutes_0 = &utilities.DoubleArray{Encoding: map[string]int{"pub_key": 0, "amt": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
|
|
|
|
)
|
|
|
|
|
2017-03-21 05:01:32 +03:00
|
|
|
func request_Lightning_QueryRoutes_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq QueryRoutesRequest
|
2016-12-27 08:45:01 +03:00
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
var (
|
|
|
|
val string
|
|
|
|
ok bool
|
|
|
|
err error
|
|
|
|
_ = err
|
|
|
|
)
|
|
|
|
|
|
|
|
val, ok = pathParams["pub_key"]
|
|
|
|
if !ok {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pub_key")
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
protoReq.PubKey, err = runtime.String(val)
|
|
|
|
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pub_key", err)
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
val, ok = pathParams["amt"]
|
|
|
|
if !ok {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "amt")
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
protoReq.Amt, err = runtime.Int64(val)
|
|
|
|
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "amt", err)
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
|
2018-02-13 03:28:39 +03:00
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_QueryRoutes_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
2017-03-21 05:01:32 +03:00
|
|
|
msg, err := client.QueryRoutes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
2016-12-27 08:45:01 +03:00
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func request_Lightning_GetNetworkInfo_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq NetworkInfoRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
msg, err := client.GetNetworkInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
func request_Lightning_FeeReport_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq FeeReportRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
msg, err := client.FeeReport(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-12-16 00:11:23 +03:00
|
|
|
func request_Lightning_UpdateChannelPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq PolicyUpdateRequest
|
2017-08-22 10:07:25 +03:00
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2017-08-22 10:07:25 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
2017-12-16 00:11:23 +03:00
|
|
|
msg, err := client.UpdateChannelPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
2017-08-22 10:07:25 +03:00
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-02-28 09:22:06 +03:00
|
|
|
func request_Lightning_ForwardingHistory_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ForwardingHistoryRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2018-02-28 09:22:06 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.ForwardingHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-04-03 06:46:27 +03:00
|
|
|
var (
|
|
|
|
filter_Lightning_ExportChannelBackup_0 = &utilities.DoubleArray{Encoding: map[string]int{"chan_point": 0, "funding_txid_str": 1, "output_index": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}}
|
|
|
|
)
|
|
|
|
|
|
|
|
func request_Lightning_ExportChannelBackup_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ExportChannelBackupRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
var (
|
|
|
|
val string
|
|
|
|
ok bool
|
|
|
|
err error
|
|
|
|
_ = err
|
|
|
|
)
|
|
|
|
|
|
|
|
val, ok = pathParams["chan_point.funding_txid_str"]
|
|
|
|
if !ok {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chan_point.funding_txid_str")
|
|
|
|
}
|
|
|
|
|
|
|
|
err = runtime.PopulateFieldFromPath(&protoReq, "chan_point.funding_txid_str", val)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chan_point.funding_txid_str", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
val, ok = pathParams["chan_point.output_index"]
|
|
|
|
if !ok {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chan_point.output_index")
|
|
|
|
}
|
|
|
|
|
|
|
|
err = runtime.PopulateFieldFromPath(&protoReq, "chan_point.output_index", val)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chan_point.output_index", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Lightning_ExportChannelBackup_0); err != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.ExportChannelBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func request_Lightning_ExportAllChannelBackups_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ChanBackupExportRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
msg, err := client.ExportAllChannelBackups(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func request_Lightning_VerifyChanBackup_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq ChanBackupSnapshot
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2019-04-03 06:46:27 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.VerifyChanBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func request_Lightning_RestoreChannelBackups_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq RestoreChanBackupRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2019-04-03 06:46:27 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.RestoreChannelBackups(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-23 14:28:17 +03:00
|
|
|
func request_Lightning_BakeMacaroon_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
var protoReq BakeMacaroonRequest
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
2019-10-30 12:53:21 +03:00
|
|
|
newReader, berr := utilities.IOReaderFactory(req.Body)
|
|
|
|
if berr != nil {
|
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
|
|
|
|
}
|
|
|
|
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
|
2019-10-23 14:28:17 +03:00
|
|
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
msg, err := client.BakeMacaroon(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
|
return msg, metadata, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
// RegisterLightningHandlerFromEndpoint is same as RegisterLightningHandler but
|
|
|
|
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
|
|
|
|
func RegisterLightningHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
|
|
|
|
conn, err := grpc.Dial(endpoint, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
defer func() {
|
|
|
|
if err != nil {
|
|
|
|
if cerr := conn.Close(); cerr != nil {
|
2019-10-30 12:53:21 +03:00
|
|
|
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
go func() {
|
|
|
|
<-ctx.Done()
|
|
|
|
if cerr := conn.Close(); cerr != nil {
|
2019-10-30 12:53:21 +03:00
|
|
|
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}()
|
|
|
|
}()
|
|
|
|
|
|
|
|
return RegisterLightningHandler(ctx, mux, conn)
|
|
|
|
}
|
|
|
|
|
|
|
|
// RegisterLightningHandler registers the http handlers for service Lightning to "mux".
|
|
|
|
// The handlers forward requests to the grpc endpoint over "conn".
|
|
|
|
func RegisterLightningHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
|
2019-10-30 12:53:21 +03:00
|
|
|
return RegisterLightningHandlerClient(ctx, mux, NewLightningClient(conn))
|
|
|
|
}
|
|
|
|
|
|
|
|
// RegisterLightningHandlerClient registers the http handlers for service Lightning
|
|
|
|
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LightningClient".
|
|
|
|
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LightningClient"
|
|
|
|
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
|
|
|
|
// "LightningClient" to call the correct interceptors.
|
|
|
|
func RegisterLightningHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LightningClient) error {
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_WalletBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_WalletBalance_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_WalletBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_ChannelBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_ChannelBalance_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_ChannelBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_GetTransactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_GetTransactions_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_GetTransactions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2019-03-05 16:22:30 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_EstimateFee_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2019-03-05 16:22:30 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_EstimateFee_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_EstimateFee_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
mux.Handle("POST", pattern_Lightning_SendCoins_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_SendCoins_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_SendCoins_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2018-09-27 16:49:44 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_ListUnspent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2018-09-27 16:49:44 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_ListUnspent_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_ListUnspent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2018-09-28 01:54:59 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_NewAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
2018-09-28 01:54:59 +03:00
|
|
|
resp, md, err := request_Lightning_NewAddress_0(rctx, inboundMarshaler, client, req, pathParams)
|
2016-10-16 00:38:47 +03:00
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2018-09-28 01:54:59 +03:00
|
|
|
forward_Lightning_NewAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2018-11-12 20:55:14 +03:00
|
|
|
mux.Handle("POST", pattern_Lightning_SignMessage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2018-11-12 20:55:14 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_SignMessage_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_SignMessage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("POST", pattern_Lightning_VerifyMessage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2018-11-12 20:55:14 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_VerifyMessage_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_VerifyMessage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
mux.Handle("POST", pattern_Lightning_ConnectPeer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_ConnectPeer_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_ConnectPeer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2017-04-12 00:49:39 +03:00
|
|
|
mux.Handle("DELETE", pattern_Lightning_DisconnectPeer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2017-04-12 00:49:39 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2017-04-12 00:49:39 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2017-04-12 00:49:39 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_DisconnectPeer_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2017-04-12 00:49:39 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_DisconnectPeer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2017-04-12 00:49:39 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_ListPeers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_ListPeers_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_ListPeers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_GetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_GetInfo_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_GetInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_PendingChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_PendingChannels_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_PendingChannels_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_ListChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_ListChannels_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_ListChannels_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2018-05-24 12:36:35 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_ClosedChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2018-05-24 12:36:35 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_ClosedChannels_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_ClosedChannels_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2016-11-11 04:33:24 +03:00
|
|
|
mux.Handle("POST", pattern_Lightning_OpenChannelSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
2016-11-11 04:33:24 +03:00
|
|
|
resp, md, err := request_Lightning_OpenChannelSync_0(rctx, inboundMarshaler, client, req, pathParams)
|
2016-10-16 00:38:47 +03:00
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_OpenChannelSync_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("DELETE", pattern_Lightning_CloseChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_CloseChannel_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_CloseChannel_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2018-05-29 12:26:47 +03:00
|
|
|
mux.Handle("DELETE", pattern_Lightning_AbandonChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2018-05-29 12:26:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_AbandonChannel_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_AbandonChannel_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2016-11-11 04:33:24 +03:00
|
|
|
mux.Handle("POST", pattern_Lightning_SendPaymentSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
2016-11-11 04:33:24 +03:00
|
|
|
resp, md, err := request_Lightning_SendPaymentSync_0(rctx, inboundMarshaler, client, req, pathParams)
|
2016-10-16 00:38:47 +03:00
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_SendPaymentSync_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2018-01-25 08:08:46 +03:00
|
|
|
mux.Handle("POST", pattern_Lightning_SendToRouteSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2018-01-25 08:08:46 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_SendToRouteSync_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_SendToRouteSync_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
mux.Handle("POST", pattern_Lightning_AddInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_AddInvoice_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_AddInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_ListInvoices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_ListInvoices_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_ListInvoices_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_LookupInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_LookupInvoice_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_LookupInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_SubscribeInvoices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-10-16 00:38:47 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-10-16 00:38:47 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_SubscribeInvoices_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-10-16 00:38:47 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_SubscribeInvoices_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2017-01-18 00:24:55 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_DecodePayReq_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2017-01-18 00:24:55 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2017-01-18 00:24:55 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2017-01-18 00:24:55 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_DecodePayReq_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2017-01-18 00:24:55 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_DecodePayReq_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2017-01-18 00:24:55 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2016-12-05 14:59:36 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_ListPayments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-12-05 14:59:36 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-12-05 14:59:36 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-12-05 14:59:36 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_ListPayments_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-12-05 14:59:36 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_ListPayments_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-12-05 14:59:36 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("DELETE", pattern_Lightning_DeleteAllPayments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-12-05 14:59:36 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-12-05 14:59:36 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-12-05 14:59:36 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_DeleteAllPayments_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-12-05 14:59:36 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_DeleteAllPayments_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-12-05 14:59:36 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2016-12-27 08:45:01 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_DescribeGraph_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-12-27 08:45:01 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-12-27 08:45:01 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_DescribeGraph_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-12-27 08:45:01 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_DescribeGraph_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-12-27 08:45:01 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2020-03-19 13:14:28 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_GetNodeMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_GetNodeMetrics_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_GetNodeMetrics_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2016-12-27 08:45:01 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_GetChanInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-12-27 08:45:01 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-12-27 08:45:01 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_GetChanInfo_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-12-27 08:45:01 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_GetChanInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-12-27 08:45:01 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_GetNodeInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-12-27 08:45:01 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-12-27 08:45:01 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_GetNodeInfo_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-12-27 08:45:01 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_GetNodeInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-12-27 08:45:01 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2017-03-21 05:01:32 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_QueryRoutes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-12-27 08:45:01 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-12-27 08:45:01 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
2017-03-21 05:01:32 +03:00
|
|
|
resp, md, err := request_Lightning_QueryRoutes_0(rctx, inboundMarshaler, client, req, pathParams)
|
2016-12-27 08:45:01 +03:00
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-12-27 08:45:01 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_QueryRoutes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-12-27 08:45:01 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_GetNetworkInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2016-12-27 08:45:01 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
2017-08-22 10:07:25 +03:00
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
2016-12-27 08:45:01 +03:00
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_GetNetworkInfo_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
2017-08-22 10:07:25 +03:00
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_GetNetworkInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_FeeReport_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2017-08-22 10:07:25 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_FeeReport_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
2016-12-27 08:45:01 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-08-22 10:07:25 +03:00
|
|
|
forward_Lightning_FeeReport_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2017-12-16 00:11:23 +03:00
|
|
|
mux.Handle("POST", pattern_Lightning_UpdateChannelPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2017-08-22 10:07:25 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
2017-12-16 00:11:23 +03:00
|
|
|
resp, md, err := request_Lightning_UpdateChannelPolicy_0(rctx, inboundMarshaler, client, req, pathParams)
|
2017-08-22 10:07:25 +03:00
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-12-16 00:11:23 +03:00
|
|
|
forward_Lightning_UpdateChannelPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
2016-12-27 08:45:01 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2018-02-28 09:22:06 +03:00
|
|
|
mux.Handle("POST", pattern_Lightning_ForwardingHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2018-02-28 09:22:06 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_ForwardingHistory_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_ForwardingHistory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2019-04-03 06:46:27 +03:00
|
|
|
mux.Handle("GET", pattern_Lightning_ExportChannelBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2019-04-03 06:46:27 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_ExportChannelBackup_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_ExportChannelBackup_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("GET", pattern_Lightning_ExportAllChannelBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2019-04-03 06:46:27 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_ExportAllChannelBackups_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_ExportAllChannelBackups_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("POST", pattern_Lightning_VerifyChanBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2019-04-03 06:46:27 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_VerifyChanBackup_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_VerifyChanBackup_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mux.Handle("POST", pattern_Lightning_RestoreChannelBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2019-04-03 06:46:27 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_RestoreChannelBackups_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_RestoreChannelBackups_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2019-10-23 14:28:17 +03:00
|
|
|
mux.Handle("POST", pattern_Lightning_BakeMacaroon_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
2019-10-30 12:53:21 +03:00
|
|
|
ctx, cancel := context.WithCancel(req.Context())
|
2019-10-23 14:28:17 +03:00
|
|
|
defer cancel()
|
|
|
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
resp, md, err := request_Lightning_BakeMacaroon_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
|
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
|
|
if err != nil {
|
|
|
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
forward_Lightning_BakeMacaroon_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
pattern_Lightning_WalletBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "balance", "blockchain"}, ""))
|
|
|
|
|
|
|
|
pattern_Lightning_ChannelBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "balance", "channels"}, ""))
|
|
|
|
|
|
|
|
pattern_Lightning_GetTransactions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "transactions"}, ""))
|
|
|
|
|
2019-03-05 16:22:30 +03:00
|
|
|
pattern_Lightning_EstimateFee_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "transactions", "fee"}, ""))
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
pattern_Lightning_SendCoins_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "transactions"}, ""))
|
|
|
|
|
2018-09-27 16:49:44 +03:00
|
|
|
pattern_Lightning_ListUnspent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "utxos"}, ""))
|
|
|
|
|
2018-09-28 01:54:59 +03:00
|
|
|
pattern_Lightning_NewAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "newaddress"}, ""))
|
2016-10-16 00:38:47 +03:00
|
|
|
|
2018-11-12 20:55:14 +03:00
|
|
|
pattern_Lightning_SignMessage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "signmessage"}, ""))
|
|
|
|
|
|
|
|
pattern_Lightning_VerifyMessage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "verifymessage"}, ""))
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
pattern_Lightning_ConnectPeer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "peers"}, ""))
|
|
|
|
|
2017-04-12 00:49:39 +03:00
|
|
|
pattern_Lightning_DisconnectPeer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "peers", "pub_key"}, ""))
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
pattern_Lightning_ListPeers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "peers"}, ""))
|
|
|
|
|
|
|
|
pattern_Lightning_GetInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "getinfo"}, ""))
|
|
|
|
|
|
|
|
pattern_Lightning_PendingChannels_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "pending"}, ""))
|
|
|
|
|
|
|
|
pattern_Lightning_ListChannels_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "channels"}, ""))
|
|
|
|
|
2018-05-24 12:36:35 +03:00
|
|
|
pattern_Lightning_ClosedChannels_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "closed"}, ""))
|
|
|
|
|
2016-11-11 04:33:24 +03:00
|
|
|
pattern_Lightning_OpenChannelSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "channels"}, ""))
|
2016-10-16 00:38:47 +03:00
|
|
|
|
2018-01-11 22:00:30 +03:00
|
|
|
pattern_Lightning_CloseChannel_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "channels", "channel_point.funding_txid_str", "channel_point.output_index"}, ""))
|
2016-10-16 00:38:47 +03:00
|
|
|
|
2018-11-05 10:13:33 +03:00
|
|
|
pattern_Lightning_AbandonChannel_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "channels", "abandon", "channel_point.funding_txid_str", "channel_point.output_index"}, ""))
|
2018-05-29 12:26:47 +03:00
|
|
|
|
2016-11-11 04:33:24 +03:00
|
|
|
pattern_Lightning_SendPaymentSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "transactions"}, ""))
|
2016-10-16 00:38:47 +03:00
|
|
|
|
2018-06-07 06:29:42 +03:00
|
|
|
pattern_Lightning_SendToRouteSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "channels", "transactions", "route"}, ""))
|
2018-01-25 08:08:46 +03:00
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
pattern_Lightning_AddInvoice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "invoices"}, ""))
|
|
|
|
|
2018-01-22 08:19:24 +03:00
|
|
|
pattern_Lightning_ListInvoices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "invoices"}, ""))
|
2016-10-16 00:38:47 +03:00
|
|
|
|
2018-01-22 08:19:24 +03:00
|
|
|
pattern_Lightning_LookupInvoice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "invoice", "r_hash_str"}, ""))
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
pattern_Lightning_SubscribeInvoices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "invoices", "subscribe"}, ""))
|
2016-12-05 14:59:36 +03:00
|
|
|
|
2017-01-18 00:24:55 +03:00
|
|
|
pattern_Lightning_DecodePayReq_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "payreq", "pay_req"}, ""))
|
|
|
|
|
2016-12-05 14:59:36 +03:00
|
|
|
pattern_Lightning_ListPayments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "payments"}, ""))
|
|
|
|
|
|
|
|
pattern_Lightning_DeleteAllPayments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "payments"}, ""))
|
2016-12-27 08:45:01 +03:00
|
|
|
|
|
|
|
pattern_Lightning_DescribeGraph_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "graph"}, ""))
|
|
|
|
|
2020-03-19 13:14:28 +03:00
|
|
|
pattern_Lightning_GetNodeMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "graph", "nodemetrics"}, ""))
|
|
|
|
|
2016-12-27 08:45:01 +03:00
|
|
|
pattern_Lightning_GetChanInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "graph", "edge", "chan_id"}, ""))
|
|
|
|
|
|
|
|
pattern_Lightning_GetNodeInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "graph", "node", "pub_key"}, ""))
|
|
|
|
|
2017-03-21 05:01:32 +03:00
|
|
|
pattern_Lightning_QueryRoutes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "graph", "routes", "pub_key", "amt"}, ""))
|
2016-12-27 08:45:01 +03:00
|
|
|
|
|
|
|
pattern_Lightning_GetNetworkInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "graph", "info"}, ""))
|
2017-08-22 10:07:25 +03:00
|
|
|
|
|
|
|
pattern_Lightning_FeeReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "fees"}, ""))
|
|
|
|
|
2018-01-13 15:22:41 +03:00
|
|
|
pattern_Lightning_UpdateChannelPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "chanpolicy"}, ""))
|
2018-02-28 09:22:06 +03:00
|
|
|
|
|
|
|
pattern_Lightning_ForwardingHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "switch"}, ""))
|
2019-04-03 06:46:27 +03:00
|
|
|
|
|
|
|
pattern_Lightning_ExportChannelBackup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "channels", "backup", "chan_point.funding_txid_str", "chan_point.output_index"}, ""))
|
|
|
|
|
|
|
|
pattern_Lightning_ExportAllChannelBackups_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "backup"}, ""))
|
|
|
|
|
|
|
|
pattern_Lightning_VerifyChanBackup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "channels", "backup", "verify"}, ""))
|
|
|
|
|
|
|
|
pattern_Lightning_RestoreChannelBackups_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "channels", "backup", "restore"}, ""))
|
2019-10-23 14:28:17 +03:00
|
|
|
|
|
|
|
pattern_Lightning_BakeMacaroon_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "macaroon"}, ""))
|
2016-10-16 00:38:47 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
forward_Lightning_WalletBalance_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_ChannelBalance_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_GetTransactions_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2019-03-05 16:22:30 +03:00
|
|
|
forward_Lightning_EstimateFee_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
forward_Lightning_SendCoins_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2018-09-27 16:49:44 +03:00
|
|
|
forward_Lightning_ListUnspent_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2018-09-28 01:54:59 +03:00
|
|
|
forward_Lightning_NewAddress_0 = runtime.ForwardResponseMessage
|
2016-10-16 00:38:47 +03:00
|
|
|
|
2018-11-12 20:55:14 +03:00
|
|
|
forward_Lightning_SignMessage_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_VerifyMessage_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
forward_Lightning_ConnectPeer_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2017-04-12 00:49:39 +03:00
|
|
|
forward_Lightning_DisconnectPeer_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
forward_Lightning_ListPeers_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_GetInfo_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_PendingChannels_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_ListChannels_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2018-05-24 12:36:35 +03:00
|
|
|
forward_Lightning_ClosedChannels_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2016-11-11 04:33:24 +03:00
|
|
|
forward_Lightning_OpenChannelSync_0 = runtime.ForwardResponseMessage
|
2016-10-16 00:38:47 +03:00
|
|
|
|
|
|
|
forward_Lightning_CloseChannel_0 = runtime.ForwardResponseStream
|
|
|
|
|
2018-05-29 12:26:47 +03:00
|
|
|
forward_Lightning_AbandonChannel_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2016-11-11 04:33:24 +03:00
|
|
|
forward_Lightning_SendPaymentSync_0 = runtime.ForwardResponseMessage
|
2016-10-16 00:38:47 +03:00
|
|
|
|
2018-01-25 08:08:46 +03:00
|
|
|
forward_Lightning_SendToRouteSync_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2016-10-16 00:38:47 +03:00
|
|
|
forward_Lightning_AddInvoice_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_ListInvoices_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_LookupInvoice_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_SubscribeInvoices_0 = runtime.ForwardResponseStream
|
2016-12-05 14:59:36 +03:00
|
|
|
|
2017-01-18 00:24:55 +03:00
|
|
|
forward_Lightning_DecodePayReq_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2016-12-05 14:59:36 +03:00
|
|
|
forward_Lightning_ListPayments_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_DeleteAllPayments_0 = runtime.ForwardResponseMessage
|
2016-12-27 08:45:01 +03:00
|
|
|
|
|
|
|
forward_Lightning_DescribeGraph_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2020-03-19 13:14:28 +03:00
|
|
|
forward_Lightning_GetNodeMetrics_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2016-12-27 08:45:01 +03:00
|
|
|
forward_Lightning_GetChanInfo_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_GetNodeInfo_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2017-03-21 05:01:32 +03:00
|
|
|
forward_Lightning_QueryRoutes_0 = runtime.ForwardResponseMessage
|
2016-12-27 08:45:01 +03:00
|
|
|
|
|
|
|
forward_Lightning_GetNetworkInfo_0 = runtime.ForwardResponseMessage
|
2017-08-22 10:07:25 +03:00
|
|
|
|
|
|
|
forward_Lightning_FeeReport_0 = runtime.ForwardResponseMessage
|
|
|
|
|
2017-12-16 00:11:23 +03:00
|
|
|
forward_Lightning_UpdateChannelPolicy_0 = runtime.ForwardResponseMessage
|
2018-02-28 09:22:06 +03:00
|
|
|
|
|
|
|
forward_Lightning_ForwardingHistory_0 = runtime.ForwardResponseMessage
|
2019-04-03 06:46:27 +03:00
|
|
|
|
|
|
|
forward_Lightning_ExportChannelBackup_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_ExportAllChannelBackups_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_VerifyChanBackup_0 = runtime.ForwardResponseMessage
|
|
|
|
|
|
|
|
forward_Lightning_RestoreChannelBackups_0 = runtime.ForwardResponseMessage
|
2019-10-23 14:28:17 +03:00
|
|
|
|
|
|
|
forward_Lightning_BakeMacaroon_0 = runtime.ForwardResponseMessage
|
2016-10-16 00:38:47 +03:00
|
|
|
)
|