2018-12-20 13:42:28 +03:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: invoicesrpc/invoices.proto
|
|
|
|
|
2019-05-15 16:07:30 +03:00
|
|
|
package invoicesrpc
|
2018-12-20 13:42:28 +03:00
|
|
|
|
|
|
|
import (
|
2019-05-15 16:07:30 +03:00
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
lnrpc "github.com/lightningnetwork/lnd/lnrpc"
|
|
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
2018-12-20 13:42:28 +03:00
|
|
|
grpc "google.golang.org/grpc"
|
2019-05-15 16:07:30 +03:00
|
|
|
math "math"
|
2018-12-20 13:42:28 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
2019-05-15 16:07:30 +03:00
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
2018-12-20 13:42:28 +03:00
|
|
|
|
2019-01-11 13:19:16 +03:00
|
|
|
type CancelInvoiceMsg struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
/// Hash corresponding to the (hold) invoice to cancel.
|
2019-01-11 13:19:16 +03:00
|
|
|
PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CancelInvoiceMsg) Reset() { *m = CancelInvoiceMsg{} }
|
|
|
|
func (m *CancelInvoiceMsg) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CancelInvoiceMsg) ProtoMessage() {}
|
|
|
|
func (*CancelInvoiceMsg) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_090ab9c4958b987d, []int{0}
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-01-11 13:19:16 +03:00
|
|
|
func (m *CancelInvoiceMsg) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_CancelInvoiceMsg.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *CancelInvoiceMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_CancelInvoiceMsg.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *CancelInvoiceMsg) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CancelInvoiceMsg.Merge(m, src)
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
|
|
|
func (m *CancelInvoiceMsg) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CancelInvoiceMsg.Size(m)
|
|
|
|
}
|
|
|
|
func (m *CancelInvoiceMsg) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CancelInvoiceMsg.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CancelInvoiceMsg proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *CancelInvoiceMsg) GetPaymentHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.PaymentHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type CancelInvoiceResp struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CancelInvoiceResp) Reset() { *m = CancelInvoiceResp{} }
|
|
|
|
func (m *CancelInvoiceResp) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CancelInvoiceResp) ProtoMessage() {}
|
|
|
|
func (*CancelInvoiceResp) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_090ab9c4958b987d, []int{1}
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-01-11 13:19:16 +03:00
|
|
|
func (m *CancelInvoiceResp) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_CancelInvoiceResp.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *CancelInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_CancelInvoiceResp.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *CancelInvoiceResp) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CancelInvoiceResp.Merge(m, src)
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
|
|
|
func (m *CancelInvoiceResp) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CancelInvoiceResp.Size(m)
|
|
|
|
}
|
|
|
|
func (m *CancelInvoiceResp) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CancelInvoiceResp.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CancelInvoiceResp proto.InternalMessageInfo
|
|
|
|
|
2019-01-15 14:11:22 +03:00
|
|
|
type AddHoldInvoiceRequest struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//An optional memo to attach along with the invoice. Used for record keeping
|
|
|
|
//purposes for the invoice's creator, and will also be set in the description
|
|
|
|
//field of the encoded payment request if the description_hash field is not
|
|
|
|
//being used.
|
2019-01-15 14:11:22 +03:00
|
|
|
Memo string `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// The hash of the preimage
|
2019-01-15 14:11:22 +03:00
|
|
|
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
|
2019-11-15 10:59:14 +03:00
|
|
|
//*
|
|
|
|
//The value of this invoice in satoshis
|
|
|
|
//
|
|
|
|
//The fields value and value_msat are mutually exclusive.
|
2019-01-15 14:11:22 +03:00
|
|
|
Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
2019-11-15 10:59:14 +03:00
|
|
|
//The value of this invoice in millisatoshis
|
|
|
|
//
|
|
|
|
//The fields value and value_msat are mutually exclusive.
|
2020-02-11 15:57:40 +03:00
|
|
|
ValueMsat int64 `protobuf:"varint,10,opt,name=value_msat,json=valueMsat,proto3" json:"value_msat,omitempty"`
|
2019-11-15 10:59:14 +03:00
|
|
|
//*
|
2019-05-15 16:07:30 +03:00
|
|
|
//Hash (SHA-256) of a description of the payment. Used if the description of
|
|
|
|
//payment (memo) is too long to naturally fit within the description field
|
|
|
|
//of an encoded payment request.
|
2020-02-11 15:57:40 +03:00
|
|
|
DescriptionHash []byte `protobuf:"bytes,4,opt,name=description_hash,json=descriptionHash,proto3" json:"description_hash,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// Payment request expiry time in seconds. Default is 3600 (1 hour).
|
2019-01-15 14:11:22 +03:00
|
|
|
Expiry int64 `protobuf:"varint,5,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// Fallback on-chain address.
|
2020-02-11 15:57:40 +03:00
|
|
|
FallbackAddr string `protobuf:"bytes,6,opt,name=fallback_addr,json=fallbackAddr,proto3" json:"fallback_addr,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// Delta to use for the time-lock of the CLTV extended to the final hop.
|
2020-02-11 15:57:40 +03:00
|
|
|
CltvExpiry uint64 `protobuf:"varint,7,opt,name=cltv_expiry,json=cltvExpiry,proto3" json:"cltv_expiry,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//Route hints that can each be individually used to assist in reaching the
|
|
|
|
//invoice's destination.
|
2020-02-11 15:57:40 +03:00
|
|
|
RouteHints []*lnrpc.RouteHint `protobuf:"bytes,8,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// Whether this invoice should include routing hints for private channels.
|
2019-01-15 14:11:22 +03:00
|
|
|
Private bool `protobuf:"varint,9,opt,name=private,proto3" json:"private,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AddHoldInvoiceRequest) Reset() { *m = AddHoldInvoiceRequest{} }
|
|
|
|
func (m *AddHoldInvoiceRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*AddHoldInvoiceRequest) ProtoMessage() {}
|
|
|
|
func (*AddHoldInvoiceRequest) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_090ab9c4958b987d, []int{2}
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-01-15 14:11:22 +03:00
|
|
|
func (m *AddHoldInvoiceRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_AddHoldInvoiceRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *AddHoldInvoiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_AddHoldInvoiceRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *AddHoldInvoiceRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_AddHoldInvoiceRequest.Merge(m, src)
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
func (m *AddHoldInvoiceRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_AddHoldInvoiceRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *AddHoldInvoiceRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_AddHoldInvoiceRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_AddHoldInvoiceRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *AddHoldInvoiceRequest) GetMemo() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Memo
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AddHoldInvoiceRequest) GetHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Hash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AddHoldInvoiceRequest) GetValue() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Value
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-11-15 10:59:14 +03:00
|
|
|
func (m *AddHoldInvoiceRequest) GetValueMsat() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ValueMsat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-01-15 14:11:22 +03:00
|
|
|
func (m *AddHoldInvoiceRequest) GetDescriptionHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.DescriptionHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AddHoldInvoiceRequest) GetExpiry() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Expiry
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AddHoldInvoiceRequest) GetFallbackAddr() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.FallbackAddr
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AddHoldInvoiceRequest) GetCltvExpiry() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CltvExpiry
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AddHoldInvoiceRequest) GetRouteHints() []*lnrpc.RouteHint {
|
|
|
|
if m != nil {
|
|
|
|
return m.RouteHints
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AddHoldInvoiceRequest) GetPrivate() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Private
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddHoldInvoiceResp struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//A bare-bones invoice for a payment within the Lightning Network. With the
|
|
|
|
//details of the invoice, the sender has all the data necessary to send a
|
|
|
|
//payment to the recipient.
|
2020-02-11 15:57:40 +03:00
|
|
|
PaymentRequest string `protobuf:"bytes,1,opt,name=payment_request,json=paymentRequest,proto3" json:"payment_request,omitempty"`
|
2019-01-15 14:11:22 +03:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AddHoldInvoiceResp) Reset() { *m = AddHoldInvoiceResp{} }
|
|
|
|
func (m *AddHoldInvoiceResp) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*AddHoldInvoiceResp) ProtoMessage() {}
|
|
|
|
func (*AddHoldInvoiceResp) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_090ab9c4958b987d, []int{3}
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-01-15 14:11:22 +03:00
|
|
|
func (m *AddHoldInvoiceResp) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_AddHoldInvoiceResp.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *AddHoldInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_AddHoldInvoiceResp.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *AddHoldInvoiceResp) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_AddHoldInvoiceResp.Merge(m, src)
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
func (m *AddHoldInvoiceResp) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_AddHoldInvoiceResp.Size(m)
|
|
|
|
}
|
|
|
|
func (m *AddHoldInvoiceResp) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_AddHoldInvoiceResp.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_AddHoldInvoiceResp proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *AddHoldInvoiceResp) GetPaymentRequest() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.PaymentRequest
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-02-11 14:02:39 +03:00
|
|
|
type SettleInvoiceMsg struct {
|
2020-03-02 17:35:25 +03:00
|
|
|
/// Externally discovered pre-image that should be used to settle the hold
|
|
|
|
/// invoice.
|
2019-02-11 14:02:39 +03:00
|
|
|
Preimage []byte `protobuf:"bytes,1,opt,name=preimage,proto3" json:"preimage,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SettleInvoiceMsg) Reset() { *m = SettleInvoiceMsg{} }
|
|
|
|
func (m *SettleInvoiceMsg) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SettleInvoiceMsg) ProtoMessage() {}
|
|
|
|
func (*SettleInvoiceMsg) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_090ab9c4958b987d, []int{4}
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-02-11 14:02:39 +03:00
|
|
|
func (m *SettleInvoiceMsg) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SettleInvoiceMsg.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *SettleInvoiceMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SettleInvoiceMsg.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *SettleInvoiceMsg) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SettleInvoiceMsg.Merge(m, src)
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
|
|
|
func (m *SettleInvoiceMsg) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SettleInvoiceMsg.Size(m)
|
|
|
|
}
|
|
|
|
func (m *SettleInvoiceMsg) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SettleInvoiceMsg.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SettleInvoiceMsg proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *SettleInvoiceMsg) GetPreimage() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Preimage
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type SettleInvoiceResp struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SettleInvoiceResp) Reset() { *m = SettleInvoiceResp{} }
|
|
|
|
func (m *SettleInvoiceResp) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SettleInvoiceResp) ProtoMessage() {}
|
|
|
|
func (*SettleInvoiceResp) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_090ab9c4958b987d, []int{5}
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-02-11 14:02:39 +03:00
|
|
|
func (m *SettleInvoiceResp) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SettleInvoiceResp.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *SettleInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SettleInvoiceResp.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *SettleInvoiceResp) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SettleInvoiceResp.Merge(m, src)
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
|
|
|
func (m *SettleInvoiceResp) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SettleInvoiceResp.Size(m)
|
|
|
|
}
|
|
|
|
func (m *SettleInvoiceResp) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SettleInvoiceResp.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SettleInvoiceResp proto.InternalMessageInfo
|
|
|
|
|
2019-04-27 12:30:26 +03:00
|
|
|
type SubscribeSingleInvoiceRequest struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
/// Hash corresponding to the (hold) invoice to subscribe to.
|
2020-02-11 15:57:40 +03:00
|
|
|
RHash []byte `protobuf:"bytes,2,opt,name=r_hash,json=rHash,proto3" json:"r_hash,omitempty"`
|
2019-04-27 12:30:26 +03:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SubscribeSingleInvoiceRequest) Reset() { *m = SubscribeSingleInvoiceRequest{} }
|
|
|
|
func (m *SubscribeSingleInvoiceRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SubscribeSingleInvoiceRequest) ProtoMessage() {}
|
|
|
|
func (*SubscribeSingleInvoiceRequest) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_090ab9c4958b987d, []int{6}
|
2019-04-27 12:30:26 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-04-27 12:30:26 +03:00
|
|
|
func (m *SubscribeSingleInvoiceRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SubscribeSingleInvoiceRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *SubscribeSingleInvoiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SubscribeSingleInvoiceRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *SubscribeSingleInvoiceRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SubscribeSingleInvoiceRequest.Merge(m, src)
|
2019-04-27 12:30:26 +03:00
|
|
|
}
|
|
|
|
func (m *SubscribeSingleInvoiceRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SubscribeSingleInvoiceRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *SubscribeSingleInvoiceRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SubscribeSingleInvoiceRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SubscribeSingleInvoiceRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *SubscribeSingleInvoiceRequest) GetRHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.RHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-01-11 13:19:16 +03:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*CancelInvoiceMsg)(nil), "invoicesrpc.CancelInvoiceMsg")
|
|
|
|
proto.RegisterType((*CancelInvoiceResp)(nil), "invoicesrpc.CancelInvoiceResp")
|
2019-01-15 14:11:22 +03:00
|
|
|
proto.RegisterType((*AddHoldInvoiceRequest)(nil), "invoicesrpc.AddHoldInvoiceRequest")
|
|
|
|
proto.RegisterType((*AddHoldInvoiceResp)(nil), "invoicesrpc.AddHoldInvoiceResp")
|
2019-02-11 14:02:39 +03:00
|
|
|
proto.RegisterType((*SettleInvoiceMsg)(nil), "invoicesrpc.SettleInvoiceMsg")
|
|
|
|
proto.RegisterType((*SettleInvoiceResp)(nil), "invoicesrpc.SettleInvoiceResp")
|
2019-04-27 12:30:26 +03:00
|
|
|
proto.RegisterType((*SubscribeSingleInvoiceRequest)(nil), "invoicesrpc.SubscribeSingleInvoiceRequest")
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
|
|
|
|
2019-05-15 16:07:30 +03:00
|
|
|
func init() { proto.RegisterFile("invoicesrpc/invoices.proto", fileDescriptor_090ab9c4958b987d) }
|
|
|
|
|
|
|
|
var fileDescriptor_090ab9c4958b987d = []byte{
|
2020-02-11 15:57:40 +03:00
|
|
|
// 541 bytes of a gzipped FileDescriptorProto
|
2019-11-15 10:59:14 +03:00
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00,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a, 0x27,
|
|
|
|
0x97, 0xd7, 0x61, 0xc1, 0xd2, 0xd0, 0x38, 0x15, 0x36, 0x68, 0x56, 0x3d, 0xf3, 0xc9, 0x5f, 0xfc,
|
|
|
|
0x0d, 0x00, 0x00, 0xff, 0xff, 0x56, 0x22, 0x58, 0xe6, 0x46, 0x04, 0x00, 0x00,
|
2019-05-15 16:07:30 +03:00
|
|
|
}
|
|
|
|
|
2018-12-20 13:42:28 +03:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
|
|
|
// InvoicesClient is the client API for Invoices service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type InvoicesClient interface {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//SubscribeSingleInvoice returns a uni-directional stream (server -> client)
|
|
|
|
//to notify the client of state transitions of the specified invoice.
|
|
|
|
//Initially the current invoice state is always sent out.
|
2019-04-27 12:30:26 +03:00
|
|
|
SubscribeSingleInvoice(ctx context.Context, in *SubscribeSingleInvoiceRequest, opts ...grpc.CallOption) (Invoices_SubscribeSingleInvoiceClient, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//CancelInvoice cancels a currently open invoice. If the invoice is already
|
|
|
|
//canceled, this call will succeed. If the invoice is already settled, it will
|
|
|
|
//fail.
|
2019-01-11 13:19:16 +03:00
|
|
|
CancelInvoice(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
|
|
|
|
//supplied in the request.
|
2019-01-15 14:11:22 +03:00
|
|
|
AddHoldInvoice(ctx context.Context, in *AddHoldInvoiceRequest, opts ...grpc.CallOption) (*AddHoldInvoiceResp, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//SettleInvoice settles an accepted invoice. If the invoice is already
|
|
|
|
//settled, this call will succeed.
|
2019-02-11 14:02:39 +03:00
|
|
|
SettleInvoice(ctx context.Context, in *SettleInvoiceMsg, opts ...grpc.CallOption) (*SettleInvoiceResp, error)
|
2018-12-20 13:42:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type invoicesClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewInvoicesClient(cc *grpc.ClientConn) InvoicesClient {
|
|
|
|
return &invoicesClient{cc}
|
|
|
|
}
|
|
|
|
|
2019-04-27 12:30:26 +03:00
|
|
|
func (c *invoicesClient) SubscribeSingleInvoice(ctx context.Context, in *SubscribeSingleInvoiceRequest, opts ...grpc.CallOption) (Invoices_SubscribeSingleInvoiceClient, error) {
|
2019-01-03 21:15:14 +03:00
|
|
|
stream, err := c.cc.NewStream(ctx, &_Invoices_serviceDesc.Streams[0], "/invoicesrpc.Invoices/SubscribeSingleInvoice", opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
x := &invoicesSubscribeSingleInvoiceClient{stream}
|
|
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return x, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Invoices_SubscribeSingleInvoiceClient interface {
|
|
|
|
Recv() (*lnrpc.Invoice, error)
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type invoicesSubscribeSingleInvoiceClient struct {
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *invoicesSubscribeSingleInvoiceClient) Recv() (*lnrpc.Invoice, error) {
|
|
|
|
m := new(lnrpc.Invoice)
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
|
|
|
}
|
|
|
|
|
2019-01-11 13:19:16 +03:00
|
|
|
func (c *invoicesClient) CancelInvoice(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error) {
|
|
|
|
out := new(CancelInvoiceResp)
|
|
|
|
err := c.cc.Invoke(ctx, "/invoicesrpc.Invoices/CancelInvoice", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-01-15 14:11:22 +03:00
|
|
|
func (c *invoicesClient) AddHoldInvoice(ctx context.Context, in *AddHoldInvoiceRequest, opts ...grpc.CallOption) (*AddHoldInvoiceResp, error) {
|
|
|
|
out := new(AddHoldInvoiceResp)
|
|
|
|
err := c.cc.Invoke(ctx, "/invoicesrpc.Invoices/AddHoldInvoice", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-02-11 14:02:39 +03:00
|
|
|
func (c *invoicesClient) SettleInvoice(ctx context.Context, in *SettleInvoiceMsg, opts ...grpc.CallOption) (*SettleInvoiceResp, error) {
|
|
|
|
out := new(SettleInvoiceResp)
|
|
|
|
err := c.cc.Invoke(ctx, "/invoicesrpc.Invoices/SettleInvoice", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-12-20 13:42:28 +03:00
|
|
|
// InvoicesServer is the server API for Invoices service.
|
|
|
|
type InvoicesServer interface {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//SubscribeSingleInvoice returns a uni-directional stream (server -> client)
|
|
|
|
//to notify the client of state transitions of the specified invoice.
|
|
|
|
//Initially the current invoice state is always sent out.
|
2019-04-27 12:30:26 +03:00
|
|
|
SubscribeSingleInvoice(*SubscribeSingleInvoiceRequest, Invoices_SubscribeSingleInvoiceServer) error
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//CancelInvoice cancels a currently open invoice. If the invoice is already
|
|
|
|
//canceled, this call will succeed. If the invoice is already settled, it will
|
|
|
|
//fail.
|
2019-01-11 13:19:16 +03:00
|
|
|
CancelInvoice(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
|
|
|
|
//supplied in the request.
|
2019-01-15 14:11:22 +03:00
|
|
|
AddHoldInvoice(context.Context, *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//SettleInvoice settles an accepted invoice. If the invoice is already
|
|
|
|
//settled, this call will succeed.
|
2019-02-11 14:02:39 +03:00
|
|
|
SettleInvoice(context.Context, *SettleInvoiceMsg) (*SettleInvoiceResp, error)
|
2018-12-20 13:42:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterInvoicesServer(s *grpc.Server, srv InvoicesServer) {
|
|
|
|
s.RegisterService(&_Invoices_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
2019-01-03 21:15:14 +03:00
|
|
|
func _Invoices_SubscribeSingleInvoice_Handler(srv interface{}, stream grpc.ServerStream) error {
|
2019-04-27 12:30:26 +03:00
|
|
|
m := new(SubscribeSingleInvoiceRequest)
|
2019-01-03 21:15:14 +03:00
|
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return srv.(InvoicesServer).SubscribeSingleInvoice(m, &invoicesSubscribeSingleInvoiceServer{stream})
|
|
|
|
}
|
|
|
|
|
|
|
|
type Invoices_SubscribeSingleInvoiceServer interface {
|
|
|
|
Send(*lnrpc.Invoice) error
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type invoicesSubscribeSingleInvoiceServer struct {
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *invoicesSubscribeSingleInvoiceServer) Send(m *lnrpc.Invoice) error {
|
|
|
|
return x.ServerStream.SendMsg(m)
|
|
|
|
}
|
|
|
|
|
2019-01-11 13:19:16 +03:00
|
|
|
func _Invoices_CancelInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(CancelInvoiceMsg)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(InvoicesServer).CancelInvoice(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/invoicesrpc.Invoices/CancelInvoice",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(InvoicesServer).CancelInvoice(ctx, req.(*CancelInvoiceMsg))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-01-15 14:11:22 +03:00
|
|
|
func _Invoices_AddHoldInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(AddHoldInvoiceRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(InvoicesServer).AddHoldInvoice(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/invoicesrpc.Invoices/AddHoldInvoice",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(InvoicesServer).AddHoldInvoice(ctx, req.(*AddHoldInvoiceRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-02-11 14:02:39 +03:00
|
|
|
func _Invoices_SettleInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(SettleInvoiceMsg)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(InvoicesServer).SettleInvoice(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/invoicesrpc.Invoices/SettleInvoice",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(InvoicesServer).SettleInvoice(ctx, req.(*SettleInvoiceMsg))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-12-20 13:42:28 +03:00
|
|
|
var _Invoices_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "invoicesrpc.Invoices",
|
|
|
|
HandlerType: (*InvoicesServer)(nil),
|
2019-01-11 13:19:16 +03:00
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "CancelInvoice",
|
|
|
|
Handler: _Invoices_CancelInvoice_Handler,
|
|
|
|
},
|
2019-01-15 14:11:22 +03:00
|
|
|
{
|
|
|
|
MethodName: "AddHoldInvoice",
|
|
|
|
Handler: _Invoices_AddHoldInvoice_Handler,
|
|
|
|
},
|
2019-02-11 14:02:39 +03:00
|
|
|
{
|
|
|
|
MethodName: "SettleInvoice",
|
|
|
|
Handler: _Invoices_SettleInvoice_Handler,
|
|
|
|
},
|
2019-01-11 13:19:16 +03:00
|
|
|
},
|
2019-01-03 21:15:14 +03:00
|
|
|
Streams: []grpc.StreamDesc{
|
|
|
|
{
|
|
|
|
StreamName: "SubscribeSingleInvoice",
|
|
|
|
Handler: _Invoices_SubscribeSingleInvoice_Handler,
|
|
|
|
ServerStreams: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Metadata: "invoicesrpc/invoices.proto",
|
2018-12-20 13:42:28 +03:00
|
|
|
}
|