Documentation ¶
Index ¶
- func CreateRPCInvoice(invoice *channeldb.Invoice, activeNetParams *chaincfg.Params) (*lnrpc.Invoice, error)
- func CreateRPCRouteHints(routeHints [][]routing.HopHint) []*lnrpc.RouteHint
- func DisableLog()
- func RegisterInvoicesServer(s *grpc.Server, srv InvoicesServer)
- func UseLogger(logger btclog.Logger)
- type CancelInvoiceMsg
- func (*CancelInvoiceMsg) Descriptor() ([]byte, []int)
- func (m *CancelInvoiceMsg) GetPaymentHash() []byte
- func (*CancelInvoiceMsg) ProtoMessage()
- 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 (dst *CancelInvoiceMsg) XXX_Merge(src proto.Message)
- func (m *CancelInvoiceMsg) XXX_Size() int
- func (m *CancelInvoiceMsg) XXX_Unmarshal(b []byte) error
- type CancelInvoiceResp
- 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 (dst *CancelInvoiceResp) XXX_Merge(src proto.Message)
- func (m *CancelInvoiceResp) XXX_Size() int
- func (m *CancelInvoiceResp) XXX_Unmarshal(b []byte) error
- type Config
- type InvoicesClient
- type InvoicesServer
- type Invoices_SubscribeSingleInvoiceClient
- type Invoices_SubscribeSingleInvoiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRPCInvoice ¶
func CreateRPCInvoice(invoice *channeldb.Invoice, activeNetParams *chaincfg.Params) (*lnrpc.Invoice, error)
CreateRPCInvoice creates an *lnrpc.Invoice from the *channeldb.Invoice.
func CreateRPCRouteHints ¶
CreateRPCRouteHints takes in the decoded form of an invoice's route hints and converts them into the lnrpc type.
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by by default until UseLogger is called.
func RegisterInvoicesServer ¶
func RegisterInvoicesServer(s *grpc.Server, srv InvoicesServer)
Types ¶
type CancelInvoiceMsg ¶
type CancelInvoiceMsg struct { // / Hash corresponding to the invoice to cancel. 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 (*CancelInvoiceMsg) Descriptor ¶
func (*CancelInvoiceMsg) Descriptor() ([]byte, []int)
func (*CancelInvoiceMsg) GetPaymentHash ¶
func (m *CancelInvoiceMsg) GetPaymentHash() []byte
func (*CancelInvoiceMsg) ProtoMessage ¶
func (*CancelInvoiceMsg) ProtoMessage()
func (*CancelInvoiceMsg) Reset ¶
func (m *CancelInvoiceMsg) Reset()
func (*CancelInvoiceMsg) String ¶
func (m *CancelInvoiceMsg) String() string
func (*CancelInvoiceMsg) XXX_DiscardUnknown ¶
func (m *CancelInvoiceMsg) XXX_DiscardUnknown()
func (*CancelInvoiceMsg) XXX_Marshal ¶
func (m *CancelInvoiceMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CancelInvoiceMsg) XXX_Merge ¶
func (dst *CancelInvoiceMsg) XXX_Merge(src proto.Message)
func (*CancelInvoiceMsg) XXX_Size ¶
func (m *CancelInvoiceMsg) XXX_Size() int
func (*CancelInvoiceMsg) XXX_Unmarshal ¶
func (m *CancelInvoiceMsg) XXX_Unmarshal(b []byte) error
type CancelInvoiceResp ¶
type CancelInvoiceResp struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CancelInvoiceResp) Descriptor ¶
func (*CancelInvoiceResp) Descriptor() ([]byte, []int)
func (*CancelInvoiceResp) ProtoMessage ¶
func (*CancelInvoiceResp) ProtoMessage()
func (*CancelInvoiceResp) Reset ¶
func (m *CancelInvoiceResp) Reset()
func (*CancelInvoiceResp) String ¶
func (m *CancelInvoiceResp) String() string
func (*CancelInvoiceResp) XXX_DiscardUnknown ¶
func (m *CancelInvoiceResp) XXX_DiscardUnknown()
func (*CancelInvoiceResp) XXX_Marshal ¶
func (m *CancelInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CancelInvoiceResp) XXX_Merge ¶
func (dst *CancelInvoiceResp) XXX_Merge(src proto.Message)
func (*CancelInvoiceResp) XXX_Size ¶
func (m *CancelInvoiceResp) XXX_Size() int
func (*CancelInvoiceResp) XXX_Unmarshal ¶
func (m *CancelInvoiceResp) XXX_Unmarshal(b []byte) error
type InvoicesClient ¶
type InvoicesClient interface { // * // 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. SubscribeSingleInvoice(ctx context.Context, in *lnrpc.PaymentHash, opts ...grpc.CallOption) (Invoices_SubscribeSingleInvoiceClient, error) // * // 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. CancelInvoice(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error) }
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.
func NewInvoicesClient ¶
func NewInvoicesClient(cc *grpc.ClientConn) InvoicesClient
type InvoicesServer ¶
type InvoicesServer interface { // * // 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. SubscribeSingleInvoice(*lnrpc.PaymentHash, Invoices_SubscribeSingleInvoiceServer) error // * // 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. CancelInvoice(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error) }
InvoicesServer is the server API for Invoices service.
type Invoices_SubscribeSingleInvoiceClient ¶
type Invoices_SubscribeSingleInvoiceClient interface { Recv() (*lnrpc.Invoice, error) grpc.ClientStream }
type Invoices_SubscribeSingleInvoiceServer ¶
type Invoices_SubscribeSingleInvoiceServer interface { Send(*lnrpc.Invoice) error grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.