Versions in this module Expand all Collapse all v0 v0.12.2 Mar 18, 2021 Changes in this version + func AddInvoice(ctx context.Context, cfg *AddInvoiceConfig, invoice *AddInvoiceData) (*lntypes.Hash, *channeldb.Invoice, error) + func CreateRPCFeatures(fv *lnwire.FeatureVector) map[uint32]*lnrpc.Feature + func CreateRPCInvoice(invoice *channeldb.Invoice, activeNetParams *chaincfg.Params) (*lnrpc.Invoice, error) + func CreateRPCRouteHints(routeHints [][]zpay32.HopHint) []*lnrpc.RouteHint + func CreateZpay32HopHints(routeHints []*lnrpc.RouteHint) ([][]zpay32.HopHint, error) + func DisableLog() + func RegisterInvoicesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterInvoicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InvoicesClient) error + func RegisterInvoicesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterInvoicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InvoicesServer) error + func RegisterInvoicesServer(s *grpc.Server, srv InvoicesServer) + func UseLogger(logger btclog.Logger) + type AddHoldInvoiceRequest struct + CltvExpiry uint64 + DescriptionHash []byte + Expiry int64 + FallbackAddr string + Hash []byte + Memo string + Private bool + RouteHints []*lnrpc.RouteHint + Value int64 + ValueMsat int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AddHoldInvoiceRequest) Descriptor() ([]byte, []int) + func (*AddHoldInvoiceRequest) ProtoMessage() + func (m *AddHoldInvoiceRequest) GetCltvExpiry() uint64 + func (m *AddHoldInvoiceRequest) GetDescriptionHash() []byte + func (m *AddHoldInvoiceRequest) GetExpiry() int64 + func (m *AddHoldInvoiceRequest) GetFallbackAddr() string + func (m *AddHoldInvoiceRequest) GetHash() []byte + func (m *AddHoldInvoiceRequest) GetMemo() string + func (m *AddHoldInvoiceRequest) GetPrivate() bool + func (m *AddHoldInvoiceRequest) GetRouteHints() []*lnrpc.RouteHint + func (m *AddHoldInvoiceRequest) GetValue() int64 + func (m *AddHoldInvoiceRequest) GetValueMsat() int64 + func (m *AddHoldInvoiceRequest) Reset() + func (m *AddHoldInvoiceRequest) String() string + func (m *AddHoldInvoiceRequest) XXX_DiscardUnknown() + func (m *AddHoldInvoiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AddHoldInvoiceRequest) XXX_Merge(src proto.Message) + func (m *AddHoldInvoiceRequest) XXX_Size() int + func (m *AddHoldInvoiceRequest) XXX_Unmarshal(b []byte) error + type AddHoldInvoiceResp struct + PaymentRequest string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AddHoldInvoiceResp) Descriptor() ([]byte, []int) + func (*AddHoldInvoiceResp) ProtoMessage() + func (m *AddHoldInvoiceResp) GetPaymentRequest() string + func (m *AddHoldInvoiceResp) Reset() + func (m *AddHoldInvoiceResp) String() string + func (m *AddHoldInvoiceResp) XXX_DiscardUnknown() + func (m *AddHoldInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AddHoldInvoiceResp) XXX_Merge(src proto.Message) + func (m *AddHoldInvoiceResp) XXX_Size() int + func (m *AddHoldInvoiceResp) XXX_Unmarshal(b []byte) error + type AddInvoiceConfig struct + AddInvoice func(invoice *channeldb.Invoice, paymentHash lntypes.Hash) (uint64, error) + ChainParams *chaincfg.Params + ChanDB *channeldb.DB + DefaultCLTVExpiry uint32 + GenInvoiceFeatures func() *lnwire.FeatureVector + Graph *channeldb.ChannelGraph + IsChannelActive func(chanID lnwire.ChannelID) bool + NodeSigner *netann.NodeSigner + type AddInvoiceData struct + CltvExpiry uint64 + DescriptionHash []byte + Expiry int64 + FallbackAddr string + Hash *lntypes.Hash + HodlInvoice bool + Memo string + Preimage *lntypes.Preimage + Private bool + RouteHints [][]zpay32.HopHint + Value lnwire.MilliSatoshi + type CancelInvoiceMsg struct + PaymentHash []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CancelInvoiceMsg) Descriptor() ([]byte, []int) + func (*CancelInvoiceMsg) ProtoMessage() + func (m *CancelInvoiceMsg) GetPaymentHash() []byte + func (m *CancelInvoiceMsg) Reset() + func (m *CancelInvoiceMsg) String() string + func (m *CancelInvoiceMsg) XXX_DiscardUnknown() + func (m *CancelInvoiceMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CancelInvoiceMsg) XXX_Merge(src proto.Message) + func (m *CancelInvoiceMsg) XXX_Size() int + func (m *CancelInvoiceMsg) XXX_Unmarshal(b []byte) error + type CancelInvoiceResp struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CancelInvoiceResp) Descriptor() ([]byte, []int) + func (*CancelInvoiceResp) ProtoMessage() + func (m *CancelInvoiceResp) Reset() + func (m *CancelInvoiceResp) String() string + func (m *CancelInvoiceResp) XXX_DiscardUnknown() + func (m *CancelInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CancelInvoiceResp) XXX_Merge(src proto.Message) + func (m *CancelInvoiceResp) XXX_Size() int + func (m *CancelInvoiceResp) XXX_Unmarshal(b []byte) error + type Config struct + type InvoicesClient interface + AddHoldInvoice func(ctx context.Context, in *AddHoldInvoiceRequest, opts ...grpc.CallOption) (*AddHoldInvoiceResp, error) + CancelInvoice func(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error) + SettleInvoice func(ctx context.Context, in *SettleInvoiceMsg, opts ...grpc.CallOption) (*SettleInvoiceResp, error) + SubscribeSingleInvoice func(ctx context.Context, in *SubscribeSingleInvoiceRequest, ...) (Invoices_SubscribeSingleInvoiceClient, error) + func NewInvoicesClient(cc *grpc.ClientConn) InvoicesClient + type InvoicesServer interface + AddHoldInvoice func(context.Context, *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error) + CancelInvoice func(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error) + SettleInvoice func(context.Context, *SettleInvoiceMsg) (*SettleInvoiceResp, error) + SubscribeSingleInvoice func(*SubscribeSingleInvoiceRequest, Invoices_SubscribeSingleInvoiceServer) error + type Invoices_SubscribeSingleInvoiceClient interface + Recv func() (*lnrpc.Invoice, error) + type Invoices_SubscribeSingleInvoiceServer interface + Send func(*lnrpc.Invoice) error + type SettleInvoiceMsg struct + Preimage []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SettleInvoiceMsg) Descriptor() ([]byte, []int) + func (*SettleInvoiceMsg) ProtoMessage() + func (m *SettleInvoiceMsg) GetPreimage() []byte + func (m *SettleInvoiceMsg) Reset() + func (m *SettleInvoiceMsg) String() string + func (m *SettleInvoiceMsg) XXX_DiscardUnknown() + func (m *SettleInvoiceMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SettleInvoiceMsg) XXX_Merge(src proto.Message) + func (m *SettleInvoiceMsg) XXX_Size() int + func (m *SettleInvoiceMsg) XXX_Unmarshal(b []byte) error + type SettleInvoiceResp struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SettleInvoiceResp) Descriptor() ([]byte, []int) + func (*SettleInvoiceResp) ProtoMessage() + func (m *SettleInvoiceResp) Reset() + func (m *SettleInvoiceResp) String() string + func (m *SettleInvoiceResp) XXX_DiscardUnknown() + func (m *SettleInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SettleInvoiceResp) XXX_Merge(src proto.Message) + func (m *SettleInvoiceResp) XXX_Size() int + func (m *SettleInvoiceResp) XXX_Unmarshal(b []byte) error + type SubscribeSingleInvoiceRequest struct + RHash []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SubscribeSingleInvoiceRequest) Descriptor() ([]byte, []int) + func (*SubscribeSingleInvoiceRequest) ProtoMessage() + func (m *SubscribeSingleInvoiceRequest) GetRHash() []byte + func (m *SubscribeSingleInvoiceRequest) Reset() + func (m *SubscribeSingleInvoiceRequest) String() string + func (m *SubscribeSingleInvoiceRequest) XXX_DiscardUnknown() + func (m *SubscribeSingleInvoiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SubscribeSingleInvoiceRequest) XXX_Merge(src proto.Message) + func (m *SubscribeSingleInvoiceRequest) XXX_Size() int + func (m *SubscribeSingleInvoiceRequest) XXX_Unmarshal(b []byte) error + type UnimplementedInvoicesServer struct + func (*UnimplementedInvoicesServer) AddHoldInvoice(ctx context.Context, req *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error) + func (*UnimplementedInvoicesServer) CancelInvoice(ctx context.Context, req *CancelInvoiceMsg) (*CancelInvoiceResp, error) + func (*UnimplementedInvoicesServer) SettleInvoice(ctx context.Context, req *SettleInvoiceMsg) (*SettleInvoiceResp, error) + func (*UnimplementedInvoicesServer) SubscribeSingleInvoice(req *SubscribeSingleInvoiceRequest, srv Invoices_SubscribeSingleInvoiceServer) error