Documentation ¶
Index ¶
- Variables
- func RegisterChannelServiceServer(s grpc.ServiceRegistrar, srv ChannelServiceServer)
- func RegisterContactServiceServer(s grpc.ServiceRegistrar, srv ContactServiceServer)
- func RegisterDiscussionServiceServer(s grpc.ServiceRegistrar, srv DiscussionServiceServer)
- func RegisterMessageServiceServer(s grpc.ServiceRegistrar, srv MessageServiceServer)
- func RegisterNodeInfoServiceServer(s grpc.ServiceRegistrar, srv NodeInfoServiceServer)
- func RegisterPaymentServiceServer(s grpc.ServiceRegistrar, srv PaymentServiceServer)
- type AddContactRequest
- func (*AddContactRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddContactRequest) GetContact() *ContactInfo
- func (*AddContactRequest) ProtoMessage()
- func (x *AddContactRequest) ProtoReflect() protoreflect.Message
- func (x *AddContactRequest) Reset()
- func (x *AddContactRequest) String() string
- func (this *AddContactRequest) Validate() error
- type AddContactResponse
- func (*AddContactResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddContactResponse) GetContact() *ContactInfo
- func (*AddContactResponse) ProtoMessage()
- func (x *AddContactResponse) ProtoReflect() protoreflect.Message
- func (x *AddContactResponse) Reset()
- func (x *AddContactResponse) String() string
- func (this *AddContactResponse) Validate() error
- type AddDiscussionRequest
- func (*AddDiscussionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddDiscussionRequest) GetDiscussion() *DiscussionInfo
- func (*AddDiscussionRequest) ProtoMessage()
- func (x *AddDiscussionRequest) ProtoReflect() protoreflect.Message
- func (x *AddDiscussionRequest) Reset()
- func (x *AddDiscussionRequest) String() string
- func (this *AddDiscussionRequest) Validate() error
- type AddDiscussionResponse
- func (*AddDiscussionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddDiscussionResponse) GetDiscussion() *DiscussionInfo
- func (*AddDiscussionResponse) ProtoMessage()
- func (x *AddDiscussionResponse) ProtoReflect() protoreflect.Message
- func (x *AddDiscussionResponse) Reset()
- func (x *AddDiscussionResponse) String() string
- func (this *AddDiscussionResponse) Validate() error
- type Chain
- type ChannelServiceClient
- type ChannelServiceServer
- type ConnectNodeRequest
- func (*ConnectNodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectNodeRequest) GetAddress() string
- func (x *ConnectNodeRequest) GetHostport() string
- func (*ConnectNodeRequest) ProtoMessage()
- func (x *ConnectNodeRequest) ProtoReflect() protoreflect.Message
- func (x *ConnectNodeRequest) Reset()
- func (x *ConnectNodeRequest) String() string
- func (this *ConnectNodeRequest) Validate() error
- type ConnectNodeResponse
- func (*ConnectNodeResponse) Descriptor() ([]byte, []int)deprecated
- func (*ConnectNodeResponse) ProtoMessage()
- func (x *ConnectNodeResponse) ProtoReflect() protoreflect.Message
- func (x *ConnectNodeResponse) Reset()
- func (x *ConnectNodeResponse) String() string
- func (this *ConnectNodeResponse) Validate() error
- type ContactInfo
- func (*ContactInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ContactInfo) GetDisplayName() string
- func (x *ContactInfo) GetId() uint64
- func (x *ContactInfo) GetNode() *NodeInfo
- func (*ContactInfo) ProtoMessage()
- func (x *ContactInfo) ProtoReflect() protoreflect.Message
- func (x *ContactInfo) Reset()
- func (x *ContactInfo) String() string
- func (this *ContactInfo) Validate() error
- type ContactServiceClient
- type ContactServiceServer
- type CreateInvoiceRequest
- func (*CreateInvoiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInvoiceRequest) GetAmtMsat() uint64
- func (x *CreateInvoiceRequest) GetExpiry() int64
- func (x *CreateInvoiceRequest) GetMemo() string
- func (x *CreateInvoiceRequest) GetPrivate() bool
- func (*CreateInvoiceRequest) ProtoMessage()
- func (x *CreateInvoiceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateInvoiceRequest) Reset()
- func (x *CreateInvoiceRequest) String() string
- func (this *CreateInvoiceRequest) Validate() error
- type CreateInvoiceResponse
- func (*CreateInvoiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInvoiceResponse) GetInvoice() *Invoice
- func (*CreateInvoiceResponse) ProtoMessage()
- func (x *CreateInvoiceResponse) ProtoReflect() protoreflect.Message
- func (x *CreateInvoiceResponse) Reset()
- func (x *CreateInvoiceResponse) String() string
- func (this *CreateInvoiceResponse) Validate() error
- type DiscussionInfo
- func (*DiscussionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DiscussionInfo) GetId() uint64
- func (x *DiscussionInfo) GetLastMsgId() uint64
- func (x *DiscussionInfo) GetLastReadMsgId() uint64
- func (x *DiscussionInfo) GetOptions() *DiscussionOptions
- func (x *DiscussionInfo) GetParticipants() []string
- func (*DiscussionInfo) ProtoMessage()
- func (x *DiscussionInfo) ProtoReflect() protoreflect.Message
- func (x *DiscussionInfo) Reset()
- func (x *DiscussionInfo) String() string
- func (this *DiscussionInfo) Validate() error
- type DiscussionOptions
- func (*DiscussionOptions) Descriptor() ([]byte, []int)deprecated
- func (x *DiscussionOptions) GetAnonymous() bool
- func (x *DiscussionOptions) GetFeeLimitMsat() int64
- func (*DiscussionOptions) ProtoMessage()
- func (x *DiscussionOptions) ProtoReflect() protoreflect.Message
- func (x *DiscussionOptions) Reset()
- func (x *DiscussionOptions) String() string
- func (this *DiscussionOptions) Validate() error
- type DiscussionServiceClient
- type DiscussionServiceServer
- type DiscussionService_GetDiscussionHistoryByIDClient
- type DiscussionService_GetDiscussionHistoryByIDServer
- type DiscussionService_GetDiscussionsClient
- type DiscussionService_GetDiscussionsServer
- type DiscussionService_SubscribeClient
- type DiscussionService_SubscribeServer
- type EstimateMessageRequest
- func (*EstimateMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EstimateMessageRequest) GetAmtMsat() int64
- func (x *EstimateMessageRequest) GetDiscussionId() uint64
- func (x *EstimateMessageRequest) GetOptions() *MessageOptions
- func (x *EstimateMessageRequest) GetPayload() string
- func (*EstimateMessageRequest) ProtoMessage()
- func (x *EstimateMessageRequest) ProtoReflect() protoreflect.Message
- func (x *EstimateMessageRequest) Reset()
- func (x *EstimateMessageRequest) String() string
- func (this *EstimateMessageRequest) Validate() error
- type EstimateMessageResponse
- func (*EstimateMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EstimateMessageResponse) GetMessage() *Message
- func (x *EstimateMessageResponse) GetSuccessProb() float64
- func (*EstimateMessageResponse) ProtoMessage()
- func (x *EstimateMessageResponse) ProtoReflect() protoreflect.Message
- func (x *EstimateMessageResponse) Reset()
- func (x *EstimateMessageResponse) String() string
- func (this *EstimateMessageResponse) Validate() error
- type GetContactsRequest
- func (*GetContactsRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetContactsRequest) ProtoMessage()
- func (x *GetContactsRequest) ProtoReflect() protoreflect.Message
- func (x *GetContactsRequest) Reset()
- func (x *GetContactsRequest) String() string
- func (this *GetContactsRequest) Validate() error
- type GetContactsResponse
- func (*GetContactsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetContactsResponse) GetContacts() []*ContactInfo
- func (*GetContactsResponse) ProtoMessage()
- func (x *GetContactsResponse) ProtoReflect() protoreflect.Message
- func (x *GetContactsResponse) Reset()
- func (x *GetContactsResponse) String() string
- func (this *GetContactsResponse) Validate() error
- type GetDiscussionHistoryByIDRequest
- func (*GetDiscussionHistoryByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDiscussionHistoryByIDRequest) GetId() uint64
- func (x *GetDiscussionHistoryByIDRequest) GetPageOptions() *KeySetPageOptions
- func (*GetDiscussionHistoryByIDRequest) ProtoMessage()
- func (x *GetDiscussionHistoryByIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetDiscussionHistoryByIDRequest) Reset()
- func (x *GetDiscussionHistoryByIDRequest) String() string
- func (this *GetDiscussionHistoryByIDRequest) Validate() error
- type GetDiscussionHistoryResponse
- func (*GetDiscussionHistoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDiscussionHistoryResponse) GetMessage() *Message
- func (*GetDiscussionHistoryResponse) ProtoMessage()
- func (x *GetDiscussionHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetDiscussionHistoryResponse) Reset()
- func (x *GetDiscussionHistoryResponse) String() string
- func (this *GetDiscussionHistoryResponse) Validate() error
- type GetDiscussionStatisticsRequest
- func (*GetDiscussionStatisticsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDiscussionStatisticsRequest) GetId() uint64
- func (*GetDiscussionStatisticsRequest) ProtoMessage()
- func (x *GetDiscussionStatisticsRequest) ProtoReflect() protoreflect.Message
- func (x *GetDiscussionStatisticsRequest) Reset()
- func (x *GetDiscussionStatisticsRequest) String() string
- func (this *GetDiscussionStatisticsRequest) Validate() error
- type GetDiscussionStatisticsResponse
- func (*GetDiscussionStatisticsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDiscussionStatisticsResponse) GetAmtMsatFees() uint64
- func (x *GetDiscussionStatisticsResponse) GetAmtMsatReceived() uint64
- func (x *GetDiscussionStatisticsResponse) GetAmtMsatSent() uint64
- func (x *GetDiscussionStatisticsResponse) GetMessagesReceived() uint64
- func (x *GetDiscussionStatisticsResponse) GetMessagesSent() uint64
- func (*GetDiscussionStatisticsResponse) ProtoMessage()
- func (x *GetDiscussionStatisticsResponse) ProtoReflect() protoreflect.Message
- func (x *GetDiscussionStatisticsResponse) Reset()
- func (x *GetDiscussionStatisticsResponse) String() string
- func (this *GetDiscussionStatisticsResponse) Validate() error
- type GetDiscussionsRequest
- func (*GetDiscussionsRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetDiscussionsRequest) ProtoMessage()
- func (x *GetDiscussionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetDiscussionsRequest) Reset()
- func (x *GetDiscussionsRequest) String() string
- func (this *GetDiscussionsRequest) Validate() error
- type GetDiscussionsResponse
- func (*GetDiscussionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDiscussionsResponse) GetDiscussion() *DiscussionInfo
- func (*GetDiscussionsResponse) ProtoMessage()
- func (x *GetDiscussionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetDiscussionsResponse) Reset()
- func (x *GetDiscussionsResponse) String() string
- func (this *GetDiscussionsResponse) Validate() error
- type GetInvoicesRequest
- func (*GetInvoicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInvoicesRequest) GetPageOptions() *KeySetPageOptions
- func (*GetInvoicesRequest) ProtoMessage()
- func (x *GetInvoicesRequest) ProtoReflect() protoreflect.Message
- func (x *GetInvoicesRequest) Reset()
- func (x *GetInvoicesRequest) String() string
- func (this *GetInvoicesRequest) Validate() error
- type GetNodesRequest
- type GetPaymentsRequest
- func (*GetPaymentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPaymentsRequest) GetPageOptions() *KeySetPageOptions
- func (*GetPaymentsRequest) ProtoMessage()
- func (x *GetPaymentsRequest) ProtoReflect() protoreflect.Message
- func (x *GetPaymentsRequest) Reset()
- func (x *GetPaymentsRequest) String() string
- func (this *GetPaymentsRequest) Validate() error
- type HTLCState
- type HopHint
- func (*HopHint) Descriptor() ([]byte, []int)deprecated
- func (x *HopHint) GetChanId() uint64
- func (x *HopHint) GetCltvExpiryDelta() uint32
- func (x *HopHint) GetFeeBaseMsat() uint32
- func (x *HopHint) GetFeeRate() uint32
- func (x *HopHint) GetPubkey() string
- func (*HopHint) ProtoMessage()
- func (x *HopHint) ProtoReflect() protoreflect.Message
- func (x *HopHint) Reset()
- func (x *HopHint) String() string
- func (this *HopHint) Validate() error
- type Invoice
- func (*Invoice) Descriptor() ([]byte, []int)deprecated
- func (x *Invoice) GetAddIndex() uint64
- func (x *Invoice) GetAmtPaidMsat() uint64
- func (x *Invoice) GetCreatedTimestamp() *timestamppb.Timestamp
- func (x *Invoice) GetExpiry() int64
- func (x *Invoice) GetHash() string
- func (x *Invoice) GetInvoiceHtlcs() []*InvoiceHTLC
- func (x *Invoice) GetMemo() string
- func (x *Invoice) GetPaymentRequest() string
- func (x *Invoice) GetPreimage() string
- func (x *Invoice) GetPrivate() bool
- func (x *Invoice) GetRouteHints() []*RouteHint
- func (x *Invoice) GetSettleIndex() uint64
- func (x *Invoice) GetSettledTimestamp() *timestamppb.Timestamp
- func (x *Invoice) GetState() InvoiceState
- func (x *Invoice) GetValueMsat() uint64
- func (*Invoice) ProtoMessage()
- func (x *Invoice) ProtoReflect() protoreflect.Message
- func (x *Invoice) Reset()
- func (x *Invoice) String() string
- func (this *Invoice) Validate() error
- type InvoiceHTLC
- func (*InvoiceHTLC) Descriptor() ([]byte, []int)deprecated
- func (x *InvoiceHTLC) GetAcceptTimestamp() *timestamppb.Timestamp
- func (x *InvoiceHTLC) GetAmtMsat() uint64
- func (x *InvoiceHTLC) GetChanId() uint64
- func (x *InvoiceHTLC) GetExpiryHeight() int32
- func (x *InvoiceHTLC) GetResolveTimestamp() *timestamppb.Timestamp
- func (x *InvoiceHTLC) GetState() InvoiceHTLCState
- func (*InvoiceHTLC) ProtoMessage()
- func (x *InvoiceHTLC) ProtoReflect() protoreflect.Message
- func (x *InvoiceHTLC) Reset()
- func (x *InvoiceHTLC) String() string
- func (this *InvoiceHTLC) Validate() error
- type InvoiceHTLCState
- func (InvoiceHTLCState) Descriptor() protoreflect.EnumDescriptor
- func (x InvoiceHTLCState) Enum() *InvoiceHTLCState
- func (InvoiceHTLCState) EnumDescriptor() ([]byte, []int)deprecated
- func (x InvoiceHTLCState) Number() protoreflect.EnumNumber
- func (x InvoiceHTLCState) String() string
- func (InvoiceHTLCState) Type() protoreflect.EnumType
- type InvoiceState
- func (InvoiceState) Descriptor() protoreflect.EnumDescriptor
- func (x InvoiceState) Enum() *InvoiceState
- func (InvoiceState) EnumDescriptor() ([]byte, []int)deprecated
- func (x InvoiceState) Number() protoreflect.EnumNumber
- func (x InvoiceState) String() string
- func (InvoiceState) Type() protoreflect.EnumType
- type KeySetPageOptions
- func (*KeySetPageOptions) Descriptor() ([]byte, []int)deprecated
- func (x *KeySetPageOptions) GetLastId() uint64
- func (x *KeySetPageOptions) GetPageSize() int64
- func (x *KeySetPageOptions) GetReverse() bool
- func (*KeySetPageOptions) ProtoMessage()
- func (x *KeySetPageOptions) ProtoReflect() protoreflect.Message
- func (x *KeySetPageOptions) Reset()
- func (x *KeySetPageOptions) String() string
- func (this *KeySetPageOptions) Validate() error
- type LookupInvoiceRequest
- func (*LookupInvoiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LookupInvoiceRequest) GetPayReq() string
- func (*LookupInvoiceRequest) ProtoMessage()
- func (x *LookupInvoiceRequest) ProtoReflect() protoreflect.Message
- func (x *LookupInvoiceRequest) Reset()
- func (x *LookupInvoiceRequest) String() string
- func (this *LookupInvoiceRequest) Validate() error
- type LookupInvoiceResponse
- func (*LookupInvoiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupInvoiceResponse) GetInvoice() *Invoice
- func (*LookupInvoiceResponse) ProtoMessage()
- func (x *LookupInvoiceResponse) ProtoReflect() protoreflect.Message
- func (x *LookupInvoiceResponse) Reset()
- func (x *LookupInvoiceResponse) String() string
- func (this *LookupInvoiceResponse) Validate() error
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetAmtMsat() int64
- func (x *Message) GetDiscussionId() uint64
- func (x *Message) GetId() uint64
- func (x *Message) GetInvoice() *Invoice
- func (m *Message) GetLightningData() isMessage_LightningData
- func (x *Message) GetPayReq() stringdeprecated
- func (x *Message) GetPayload() string
- func (x *Message) GetPaymentRoutes() []*PaymentRoutedeprecated
- func (x *Message) GetPayments() *Payments
- func (x *Message) GetPreimage() stringdeprecated
- func (x *Message) GetReceivedTimestamp() *timestamppb.Timestamp
- func (x *Message) GetReceiver() stringdeprecated
- func (x *Message) GetSender() string
- func (x *Message) GetSenderVerified() bool
- func (x *Message) GetSentTimestamp() *timestamppb.Timestamp
- func (x *Message) GetTotalFeesMsat() int64deprecated
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- func (this *Message) Validate() error
- type MessageOptions
- func (*MessageOptions) Descriptor() ([]byte, []int)deprecated
- func (x *MessageOptions) GetAnonymous() bool
- func (x *MessageOptions) GetFeeLimitMsat() int64
- func (*MessageOptions) ProtoMessage()
- func (x *MessageOptions) ProtoReflect() protoreflect.Message
- func (x *MessageOptions) Reset()
- func (x *MessageOptions) String() string
- func (this *MessageOptions) Validate() error
- type MessageServiceClient
- type MessageServiceServer
- type MessageService_SubscribeMessagesClient
- type MessageService_SubscribeMessagesServer
- type Message_Invoice
- type Message_Payments
- type NodeInfo
- func (*NodeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *NodeInfo) GetAddress() string
- func (x *NodeInfo) GetAlias() string
- func (*NodeInfo) ProtoMessage()
- func (x *NodeInfo) ProtoReflect() protoreflect.Message
- func (x *NodeInfo) Reset()
- func (x *NodeInfo) String() string
- func (this *NodeInfo) Validate() error
- type NodeInfoResponse
- func (*NodeInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NodeInfoResponse) GetNodes() []*NodeInfo
- func (*NodeInfoResponse) ProtoMessage()
- func (x *NodeInfoResponse) ProtoReflect() protoreflect.Message
- func (x *NodeInfoResponse) Reset()
- func (x *NodeInfoResponse) String() string
- func (this *NodeInfoResponse) Validate() error
- type NodeInfoServiceClient
- type NodeInfoServiceServer
- type OpenChannelRequest
- func (*OpenChannelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OpenChannelRequest) GetAddress() string
- func (x *OpenChannelRequest) GetAmtMsat() uint64
- func (x *OpenChannelRequest) GetMinInputConfs() int32
- func (x *OpenChannelRequest) GetPushAmtMsat() uint64
- func (x *OpenChannelRequest) GetSatPerVbyte() uint64
- func (x *OpenChannelRequest) GetTargetConfirmationBlock() uint32
- func (*OpenChannelRequest) ProtoMessage()
- func (x *OpenChannelRequest) ProtoReflect() protoreflect.Message
- func (x *OpenChannelRequest) Reset()
- func (x *OpenChannelRequest) String() string
- func (this *OpenChannelRequest) Validate() error
- type OpenChannelResponse
- func (*OpenChannelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OpenChannelResponse) GetFundingTxid() string
- func (x *OpenChannelResponse) GetOutputIndex() uint32
- func (*OpenChannelResponse) ProtoMessage()
- func (x *OpenChannelResponse) ProtoReflect() protoreflect.Message
- func (x *OpenChannelResponse) Reset()
- func (x *OpenChannelResponse) String() string
- func (this *OpenChannelResponse) Validate() error
- type PayRequest
- func (*PayRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PayRequest) GetAddress() string
- func (x *PayRequest) GetAmtMsat() uint64
- func (m *PayRequest) GetDestination() isPayRequest_Destination
- func (x *PayRequest) GetOptions() *PaymentOptions
- func (x *PayRequest) GetPayReq() string
- func (*PayRequest) ProtoMessage()
- func (x *PayRequest) ProtoReflect() protoreflect.Message
- func (x *PayRequest) Reset()
- func (x *PayRequest) String() string
- func (this *PayRequest) Validate() error
- type PayRequest_Address
- type PayRequest_PayReq
- type PayResponse
- func (*PayResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PayResponse) GetPayment() *Payment
- func (*PayResponse) ProtoMessage()
- func (x *PayResponse) ProtoReflect() protoreflect.Message
- func (x *PayResponse) Reset()
- func (x *PayResponse) String() string
- func (this *PayResponse) Validate() error
- type Payment
- func (*Payment) Descriptor() ([]byte, []int)deprecated
- func (x *Payment) GetAmtMsat() uint64
- func (x *Payment) GetCreatedTimestamp() *timestamppb.Timestamp
- func (x *Payment) GetHTLCs() []*PaymentHTLC
- func (x *Payment) GetHash() string
- func (x *Payment) GetPayReq() string
- func (x *Payment) GetPaymentIndex() uint64
- func (x *Payment) GetPreimage() string
- func (x *Payment) GetResolvedTimestamp() *timestamppb.Timestamp
- func (x *Payment) GetState() PaymentState
- func (*Payment) ProtoMessage()
- func (x *Payment) ProtoReflect() protoreflect.Message
- func (x *Payment) Reset()
- func (x *Payment) String() string
- func (this *Payment) Validate() error
- type PaymentHTLC
- func (*PaymentHTLC) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentHTLC) GetAttemptTimestamp() *timestamppb.Timestamp
- func (x *PaymentHTLC) GetPreimage() string
- func (x *PaymentHTLC) GetResolveTimestamp() *timestamppb.Timestamp
- func (x *PaymentHTLC) GetRoute() *PaymentRoute
- func (x *PaymentHTLC) GetState() HTLCState
- func (*PaymentHTLC) ProtoMessage()
- func (x *PaymentHTLC) ProtoReflect() protoreflect.Message
- func (x *PaymentHTLC) Reset()
- func (x *PaymentHTLC) String() string
- func (this *PaymentHTLC) Validate() error
- type PaymentHop
- func (*PaymentHop) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentHop) GetAmtToForwardMsat() int64
- func (x *PaymentHop) GetChanId() uint64
- func (x *PaymentHop) GetFeeMsat() int64
- func (x *PaymentHop) GetHopAddress() string
- func (*PaymentHop) ProtoMessage()
- func (x *PaymentHop) ProtoReflect() protoreflect.Message
- func (x *PaymentHop) Reset()
- func (x *PaymentHop) String() string
- func (this *PaymentHop) Validate() error
- type PaymentOptions
- func (*PaymentOptions) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentOptions) GetFeeLimitMsat() int64
- func (*PaymentOptions) ProtoMessage()
- func (x *PaymentOptions) ProtoReflect() protoreflect.Message
- func (x *PaymentOptions) Reset()
- func (x *PaymentOptions) String() string
- func (this *PaymentOptions) Validate() error
- type PaymentRoute
- func (*PaymentRoute) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentRoute) GetHops() []*PaymentHop
- func (x *PaymentRoute) GetRouteAmtMsat() int64
- func (x *PaymentRoute) GetRouteFeesMsat() int64
- func (x *PaymentRoute) GetTotalTimelock() uint32
- func (*PaymentRoute) ProtoMessage()
- func (x *PaymentRoute) ProtoReflect() protoreflect.Message
- func (x *PaymentRoute) Reset()
- func (x *PaymentRoute) String() string
- func (this *PaymentRoute) Validate() error
- type PaymentServiceClient
- type PaymentServiceServer
- type PaymentService_GetInvoicesClient
- type PaymentService_GetInvoicesServer
- type PaymentService_GetPaymentsClient
- type PaymentService_GetPaymentsServer
- type PaymentService_SubscribeInvoicesClient
- type PaymentService_SubscribeInvoicesServer
- type PaymentService_SubscribePaymentsClient
- type PaymentService_SubscribePaymentsServer
- type PaymentState
- func (PaymentState) Descriptor() protoreflect.EnumDescriptor
- func (x PaymentState) Enum() *PaymentState
- func (PaymentState) EnumDescriptor() ([]byte, []int)deprecated
- func (x PaymentState) Number() protoreflect.EnumNumber
- func (x PaymentState) String() string
- func (PaymentState) Type() protoreflect.EnumType
- type Payments
- type RemoveContactByAddressRequest
- func (*RemoveContactByAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveContactByAddressRequest) GetAddress() string
- func (*RemoveContactByAddressRequest) ProtoMessage()
- func (x *RemoveContactByAddressRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveContactByAddressRequest) Reset()
- func (x *RemoveContactByAddressRequest) String() string
- func (this *RemoveContactByAddressRequest) Validate() error
- type RemoveContactByIDRequest
- func (*RemoveContactByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveContactByIDRequest) GetId() uint64
- func (*RemoveContactByIDRequest) ProtoMessage()
- func (x *RemoveContactByIDRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveContactByIDRequest) Reset()
- func (x *RemoveContactByIDRequest) String() string
- func (this *RemoveContactByIDRequest) Validate() error
- type RemoveContactResponse
- func (*RemoveContactResponse) Descriptor() ([]byte, []int)deprecated
- func (*RemoveContactResponse) ProtoMessage()
- func (x *RemoveContactResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveContactResponse) Reset()
- func (x *RemoveContactResponse) String() string
- func (this *RemoveContactResponse) Validate() error
- type RemoveDiscussionRequest
- func (*RemoveDiscussionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveDiscussionRequest) GetId() uint64
- func (*RemoveDiscussionRequest) ProtoMessage()
- func (x *RemoveDiscussionRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveDiscussionRequest) Reset()
- func (x *RemoveDiscussionRequest) String() string
- func (this *RemoveDiscussionRequest) Validate() error
- type RemoveDiscussionResponse
- func (*RemoveDiscussionResponse) Descriptor() ([]byte, []int)deprecated
- func (*RemoveDiscussionResponse) ProtoMessage()
- func (x *RemoveDiscussionResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveDiscussionResponse) Reset()
- func (x *RemoveDiscussionResponse) String() string
- func (this *RemoveDiscussionResponse) Validate() error
- type RouteHint
- type RouteRequest
- func (*RouteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RouteRequest) GetAddress() string
- func (x *RouteRequest) GetAmtMsat() uint64
- func (m *RouteRequest) GetDestination() isRouteRequest_Destination
- func (x *RouteRequest) GetOptions() *PaymentOptions
- func (x *RouteRequest) GetPayReq() string
- func (*RouteRequest) ProtoMessage()
- func (x *RouteRequest) ProtoReflect() protoreflect.Message
- func (x *RouteRequest) Reset()
- func (x *RouteRequest) String() string
- func (this *RouteRequest) Validate() error
- type RouteRequest_Address
- type RouteRequest_PayReq
- type RouteResponse
- func (*RouteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RouteResponse) GetRoute() *PaymentRoute
- func (*RouteResponse) ProtoMessage()
- func (x *RouteResponse) ProtoReflect() protoreflect.Message
- func (x *RouteResponse) Reset()
- func (x *RouteResponse) String() string
- func (this *RouteResponse) Validate() error
- type SearchNodeByAddressRequest
- func (*SearchNodeByAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchNodeByAddressRequest) GetAddress() string
- func (*SearchNodeByAddressRequest) ProtoMessage()
- func (x *SearchNodeByAddressRequest) ProtoReflect() protoreflect.Message
- func (x *SearchNodeByAddressRequest) Reset()
- func (x *SearchNodeByAddressRequest) String() string
- func (this *SearchNodeByAddressRequest) Validate() error
- type SearchNodeByAliasRequest
- func (*SearchNodeByAliasRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchNodeByAliasRequest) GetAlias() string
- func (*SearchNodeByAliasRequest) ProtoMessage()
- func (x *SearchNodeByAliasRequest) ProtoReflect() protoreflect.Message
- func (x *SearchNodeByAliasRequest) Reset()
- func (x *SearchNodeByAliasRequest) String() string
- func (this *SearchNodeByAliasRequest) Validate() error
- type SelfBalanceRequest
- func (*SelfBalanceRequest) Descriptor() ([]byte, []int)deprecated
- func (*SelfBalanceRequest) ProtoMessage()
- func (x *SelfBalanceRequest) ProtoReflect() protoreflect.Message
- func (x *SelfBalanceRequest) Reset()
- func (x *SelfBalanceRequest) String() string
- func (this *SelfBalanceRequest) Validate() error
- type SelfBalanceResponse
- func (*SelfBalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SelfBalanceResponse) GetChannelLocalMsat() uint64
- func (x *SelfBalanceResponse) GetChannelRemoteMsat() uint64
- func (x *SelfBalanceResponse) GetPendingOpenLocalMsat() uint64
- func (x *SelfBalanceResponse) GetPendingOpenRemoteMsat() uint64
- func (x *SelfBalanceResponse) GetUnsettledLocalMsat() uint64
- func (x *SelfBalanceResponse) GetUnsettledRemoteMsat() uint64
- func (x *SelfBalanceResponse) GetWalletConfirmedSat() int64
- func (x *SelfBalanceResponse) GetWalletUnconfirmedSat() int64
- func (*SelfBalanceResponse) ProtoMessage()
- func (x *SelfBalanceResponse) ProtoReflect() protoreflect.Message
- func (x *SelfBalanceResponse) Reset()
- func (x *SelfBalanceResponse) String() string
- func (this *SelfBalanceResponse) Validate() error
- type SelfInfoRequest
- type SelfInfoResponse
- func (*SelfInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SelfInfoResponse) GetChains() []*Chain
- func (x *SelfInfoResponse) GetInfo() *NodeInfo
- func (*SelfInfoResponse) ProtoMessage()
- func (x *SelfInfoResponse) ProtoReflect() protoreflect.Message
- func (x *SelfInfoResponse) Reset()
- func (x *SelfInfoResponse) String() string
- func (this *SelfInfoResponse) Validate() error
- type SendMessageRequest
- func (*SendMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageRequest) GetAmtMsat() int64
- func (x *SendMessageRequest) GetDiscussionId() uint64
- func (x *SendMessageRequest) GetOptions() *MessageOptions
- func (x *SendMessageRequest) GetPayReq() string
- func (x *SendMessageRequest) GetPayload() string
- func (*SendMessageRequest) ProtoMessage()
- func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
- func (x *SendMessageRequest) Reset()
- func (x *SendMessageRequest) String() string
- func (this *SendMessageRequest) Validate() error
- type SendMessageResponse
- func (*SendMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageResponse) GetSentMessage() *Message
- func (*SendMessageResponse) ProtoMessage()
- func (x *SendMessageResponse) ProtoReflect() protoreflect.Message
- func (x *SendMessageResponse) Reset()
- func (x *SendMessageResponse) String() string
- func (this *SendMessageResponse) Validate() error
- type SendRequest
- func (*SendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendRequest) GetAmtMsat() int64
- func (m *SendRequest) GetDestination() isSendRequest_Destination
- func (x *SendRequest) GetDiscussionId() uint64
- func (x *SendRequest) GetOptions() *MessageOptions
- func (x *SendRequest) GetPayReq() string
- func (x *SendRequest) GetPayload() string
- func (*SendRequest) ProtoMessage()
- func (x *SendRequest) ProtoReflect() protoreflect.Message
- func (x *SendRequest) Reset()
- func (x *SendRequest) String() string
- func (this *SendRequest) Validate() error
- type SendRequest_DiscussionId
- type SendRequest_PayReq
- type SendResponse
- func (*SendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendResponse) GetSentMessage() *Message
- func (*SendResponse) ProtoMessage()
- func (x *SendResponse) ProtoReflect() protoreflect.Message
- func (x *SendResponse) Reset()
- func (x *SendResponse) String() string
- func (this *SendResponse) Validate() error
- type SubscribeInvoicesRequest
- func (*SubscribeInvoicesRequest) Descriptor() ([]byte, []int)deprecated
- func (*SubscribeInvoicesRequest) ProtoMessage()
- func (x *SubscribeInvoicesRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeInvoicesRequest) Reset()
- func (x *SubscribeInvoicesRequest) String() string
- func (this *SubscribeInvoicesRequest) Validate() error
- type SubscribeMessageRequestdeprecated
- func (*SubscribeMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (*SubscribeMessageRequest) ProtoMessage()
- func (x *SubscribeMessageRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeMessageRequest) Reset()
- func (x *SubscribeMessageRequest) String() string
- func (this *SubscribeMessageRequest) Validate() error
- type SubscribeMessageResponse
- func (*SubscribeMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeMessageResponse) GetReceivedMessage() *Message
- func (*SubscribeMessageResponse) ProtoMessage()
- func (x *SubscribeMessageResponse) ProtoReflect() protoreflect.Message
- func (x *SubscribeMessageResponse) Reset()
- func (x *SubscribeMessageResponse) String() string
- func (this *SubscribeMessageResponse) Validate() error
- type SubscribeMessagesRequest
- func (*SubscribeMessagesRequest) Descriptor() ([]byte, []int)deprecated
- func (*SubscribeMessagesRequest) ProtoMessage()
- func (x *SubscribeMessagesRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeMessagesRequest) Reset()
- func (x *SubscribeMessagesRequest) String() string
- func (this *SubscribeMessagesRequest) Validate() error
- type SubscribePaymentsRequest
- func (*SubscribePaymentsRequest) Descriptor() ([]byte, []int)deprecated
- func (*SubscribePaymentsRequest) ProtoMessage()
- func (x *SubscribePaymentsRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribePaymentsRequest) Reset()
- func (x *SubscribePaymentsRequest) String() string
- func (this *SubscribePaymentsRequest) Validate() error
- type UnimplementedChannelServiceServer
- type UnimplementedContactServiceServer
- func (UnimplementedContactServiceServer) AddContact(context.Context, *AddContactRequest) (*AddContactResponse, error)
- func (UnimplementedContactServiceServer) GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error)
- func (UnimplementedContactServiceServer) RemoveContactByAddress(context.Context, *RemoveContactByAddressRequest) (*RemoveContactResponse, error)
- func (UnimplementedContactServiceServer) RemoveContactByID(context.Context, *RemoveContactByIDRequest) (*RemoveContactResponse, error)
- type UnimplementedDiscussionServiceServer
- func (UnimplementedDiscussionServiceServer) AddDiscussion(context.Context, *AddDiscussionRequest) (*AddDiscussionResponse, error)
- func (UnimplementedDiscussionServiceServer) GetDiscussionHistoryByID(*GetDiscussionHistoryByIDRequest, ...) error
- func (UnimplementedDiscussionServiceServer) GetDiscussionStatistics(context.Context, *GetDiscussionStatisticsRequest) (*GetDiscussionStatisticsResponse, error)
- func (UnimplementedDiscussionServiceServer) GetDiscussions(*GetDiscussionsRequest, DiscussionService_GetDiscussionsServer) error
- func (UnimplementedDiscussionServiceServer) RemoveDiscussion(context.Context, *RemoveDiscussionRequest) (*RemoveDiscussionResponse, error)
- func (UnimplementedDiscussionServiceServer) Send(context.Context, *SendRequest) (*SendResponse, error)
- func (UnimplementedDiscussionServiceServer) Subscribe(*SubscribeMessagesRequest, DiscussionService_SubscribeServer) error
- func (UnimplementedDiscussionServiceServer) UpdateDiscussionLastRead(context.Context, *UpdateDiscussionLastReadRequest) (*UpdateDiscussionResponse, error)
- type UnimplementedMessageServiceServer
- func (UnimplementedMessageServiceServer) EstimateMessage(context.Context, *EstimateMessageRequest) (*EstimateMessageResponse, error)
- func (UnimplementedMessageServiceServer) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
- func (UnimplementedMessageServiceServer) SubscribeMessages(*SubscribeMessageRequest, MessageService_SubscribeMessagesServer) error
- type UnimplementedNodeInfoServiceServer
- func (UnimplementedNodeInfoServiceServer) ConnectNode(context.Context, *ConnectNodeRequest) (*ConnectNodeResponse, error)
- func (UnimplementedNodeInfoServiceServer) GetNodes(context.Context, *GetNodesRequest) (*NodeInfoResponse, error)
- func (UnimplementedNodeInfoServiceServer) GetSelfBalance(context.Context, *SelfBalanceRequest) (*SelfBalanceResponse, error)
- func (UnimplementedNodeInfoServiceServer) GetSelfInfo(context.Context, *SelfInfoRequest) (*SelfInfoResponse, error)
- func (UnimplementedNodeInfoServiceServer) GetVersion(context.Context, *VersionRequest) (*Version, error)
- func (UnimplementedNodeInfoServiceServer) SearchNodeByAddress(context.Context, *SearchNodeByAddressRequest) (*NodeInfoResponse, error)
- func (UnimplementedNodeInfoServiceServer) SearchNodeByAlias(context.Context, *SearchNodeByAliasRequest) (*NodeInfoResponse, error)
- type UnimplementedPaymentServiceServer
- func (UnimplementedPaymentServiceServer) CreateInvoice(context.Context, *CreateInvoiceRequest) (*CreateInvoiceResponse, error)
- func (UnimplementedPaymentServiceServer) GetInvoices(*GetInvoicesRequest, PaymentService_GetInvoicesServer) error
- func (UnimplementedPaymentServiceServer) GetPayments(*GetPaymentsRequest, PaymentService_GetPaymentsServer) error
- func (UnimplementedPaymentServiceServer) GetRoute(context.Context, *RouteRequest) (*RouteResponse, error)
- func (UnimplementedPaymentServiceServer) LookupInvoice(context.Context, *LookupInvoiceRequest) (*LookupInvoiceResponse, error)
- func (UnimplementedPaymentServiceServer) Pay(context.Context, *PayRequest) (*PayResponse, error)
- func (UnimplementedPaymentServiceServer) SubscribeInvoices(*SubscribeInvoicesRequest, PaymentService_SubscribeInvoicesServer) error
- func (UnimplementedPaymentServiceServer) SubscribePayments(*SubscribePaymentsRequest, PaymentService_SubscribePaymentsServer) error
- type UnsafeChannelServiceServer
- type UnsafeContactServiceServer
- type UnsafeDiscussionServiceServer
- type UnsafeMessageServiceServer
- type UnsafeNodeInfoServiceServer
- type UnsafePaymentServiceServer
- type UpdateDiscussionLastReadRequest
- func (*UpdateDiscussionLastReadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDiscussionLastReadRequest) GetDiscussionId() uint64
- func (x *UpdateDiscussionLastReadRequest) GetLastReadMsgId() uint64
- func (*UpdateDiscussionLastReadRequest) ProtoMessage()
- func (x *UpdateDiscussionLastReadRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDiscussionLastReadRequest) Reset()
- func (x *UpdateDiscussionLastReadRequest) String() string
- func (this *UpdateDiscussionLastReadRequest) Validate() error
- type UpdateDiscussionResponse
- func (*UpdateDiscussionResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateDiscussionResponse) ProtoMessage()
- func (x *UpdateDiscussionResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateDiscussionResponse) Reset()
- func (x *UpdateDiscussionResponse) String() string
- func (this *UpdateDiscussionResponse) Validate() error
- type Version
- func (*Version) Descriptor() ([]byte, []int)deprecated
- func (x *Version) GetCommit() string
- func (x *Version) GetCommitHash() string
- func (x *Version) GetVersion() string
- func (*Version) ProtoMessage()
- func (x *Version) ProtoReflect() protoreflect.Message
- func (x *Version) Reset()
- func (x *Version) String() string
- func (this *Version) Validate() error
- type VersionRequest
Constants ¶
This section is empty.
Variables ¶
var ( PaymentState_name = map[int32]string{ 0: "PAYMENT_UNKNOWN", 1: "PAYMENT_INFLIGHT", 2: "PAYMENT_SUCCEEDED", 3: "PAYMENT_FAILED", } PaymentState_value = map[string]int32{ "PAYMENT_UNKNOWN": 0, "PAYMENT_INFLIGHT": 1, "PAYMENT_SUCCEEDED": 2, "PAYMENT_FAILED": 3, } )
Enum value maps for PaymentState.
var ( HTLCState_name = map[int32]string{ 0: "HTLC_IN_FLIGHT", 1: "HTLC_SUCCEEDED", 2: "HTLC_FAILED", } HTLCState_value = map[string]int32{ "HTLC_IN_FLIGHT": 0, "HTLC_SUCCEEDED": 1, "HTLC_FAILED": 2, } )
Enum value maps for HTLCState.
var ( InvoiceState_name = map[int32]string{ 0: "INVOICE_OPEN", 1: "INVOICE_ACCEPTED", 2: "INVOICE_SETTLED", 3: "INVOICE_CANCELLED", } InvoiceState_value = map[string]int32{ "INVOICE_OPEN": 0, "INVOICE_ACCEPTED": 1, "INVOICE_SETTLED": 2, "INVOICE_CANCELLED": 3, } )
Enum value maps for InvoiceState.
var ( InvoiceHTLCState_name = map[int32]string{ 0: "INVOICE_HTLC_ACCEPTED", 1: "INVOICE_HTLC_SETTLED", 2: "INVOICE_HTLC_CANCELLED", } InvoiceHTLCState_value = map[string]int32{ "INVOICE_HTLC_ACCEPTED": 0, "INVOICE_HTLC_SETTLED": 1, "INVOICE_HTLC_CANCELLED": 2, } )
Enum value maps for InvoiceHTLCState.
var ChannelService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.ChannelService", HandlerType: (*ChannelServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "OpenChannel", Handler: _ChannelService_OpenChannel_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rpc/services/rpc.proto", }
ChannelService_ServiceDesc is the grpc.ServiceDesc for ChannelService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ContactService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.ContactService", HandlerType: (*ContactServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetContacts", Handler: _ContactService_GetContacts_Handler, }, { MethodName: "AddContact", Handler: _ContactService_AddContact_Handler, }, { MethodName: "RemoveContactByID", Handler: _ContactService_RemoveContactByID_Handler, }, { MethodName: "RemoveContactByAddress", Handler: _ContactService_RemoveContactByAddress_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rpc/services/rpc.proto", }
ContactService_ServiceDesc is the grpc.ServiceDesc for ContactService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var DiscussionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.DiscussionService", HandlerType: (*DiscussionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDiscussionStatistics", Handler: _DiscussionService_GetDiscussionStatistics_Handler, }, { MethodName: "AddDiscussion", Handler: _DiscussionService_AddDiscussion_Handler, }, { MethodName: "UpdateDiscussionLastRead", Handler: _DiscussionService_UpdateDiscussionLastRead_Handler, }, { MethodName: "RemoveDiscussion", Handler: _DiscussionService_RemoveDiscussion_Handler, }, { MethodName: "Send", Handler: _DiscussionService_Send_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetDiscussions", Handler: _DiscussionService_GetDiscussions_Handler, ServerStreams: true, }, { StreamName: "GetDiscussionHistoryByID", Handler: _DiscussionService_GetDiscussionHistoryByID_Handler, ServerStreams: true, }, { StreamName: "Subscribe", Handler: _DiscussionService_Subscribe_Handler, ServerStreams: true, }, }, Metadata: "rpc/services/rpc.proto", }
DiscussionService_ServiceDesc is the grpc.ServiceDesc for DiscussionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_rpc_services_rpc_proto protoreflect.FileDescriptor
var MessageService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.MessageService", HandlerType: (*MessageServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EstimateMessage", Handler: _MessageService_EstimateMessage_Handler, }, { MethodName: "SendMessage", Handler: _MessageService_SendMessage_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SubscribeMessages", Handler: _MessageService_SubscribeMessages_Handler, ServerStreams: true, }, }, Metadata: "rpc/services/rpc.proto", }
MessageService_ServiceDesc is the grpc.ServiceDesc for MessageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var NodeInfoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.NodeInfoService", HandlerType: (*NodeInfoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVersion", Handler: _NodeInfoService_GetVersion_Handler, }, { MethodName: "GetSelfInfo", Handler: _NodeInfoService_GetSelfInfo_Handler, }, { MethodName: "GetSelfBalance", Handler: _NodeInfoService_GetSelfBalance_Handler, }, { MethodName: "GetNodes", Handler: _NodeInfoService_GetNodes_Handler, }, { MethodName: "SearchNodeByAddress", Handler: _NodeInfoService_SearchNodeByAddress_Handler, }, { MethodName: "SearchNodeByAlias", Handler: _NodeInfoService_SearchNodeByAlias_Handler, }, { MethodName: "ConnectNode", Handler: _NodeInfoService_ConnectNode_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rpc/services/rpc.proto", }
NodeInfoService_ServiceDesc is the grpc.ServiceDesc for NodeInfoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PaymentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.PaymentService", HandlerType: (*PaymentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateInvoice", Handler: _PaymentService_CreateInvoice_Handler, }, { MethodName: "LookupInvoice", Handler: _PaymentService_LookupInvoice_Handler, }, { MethodName: "Pay", Handler: _PaymentService_Pay_Handler, }, { MethodName: "GetRoute", Handler: _PaymentService_GetRoute_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SubscribeInvoices", Handler: _PaymentService_SubscribeInvoices_Handler, ServerStreams: true, }, { StreamName: "SubscribePayments", Handler: _PaymentService_SubscribePayments_Handler, ServerStreams: true, }, { StreamName: "GetInvoices", Handler: _PaymentService_GetInvoices_Handler, ServerStreams: true, }, { StreamName: "GetPayments", Handler: _PaymentService_GetPayments_Handler, ServerStreams: true, }, }, Metadata: "rpc/services/rpc.proto", }
PaymentService_ServiceDesc is the grpc.ServiceDesc for PaymentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterChannelServiceServer ¶
func RegisterChannelServiceServer(s grpc.ServiceRegistrar, srv ChannelServiceServer)
func RegisterContactServiceServer ¶
func RegisterContactServiceServer(s grpc.ServiceRegistrar, srv ContactServiceServer)
func RegisterDiscussionServiceServer ¶
func RegisterDiscussionServiceServer(s grpc.ServiceRegistrar, srv DiscussionServiceServer)
func RegisterMessageServiceServer ¶
func RegisterMessageServiceServer(s grpc.ServiceRegistrar, srv MessageServiceServer)
func RegisterNodeInfoServiceServer ¶
func RegisterNodeInfoServiceServer(s grpc.ServiceRegistrar, srv NodeInfoServiceServer)
func RegisterPaymentServiceServer ¶
func RegisterPaymentServiceServer(s grpc.ServiceRegistrar, srv PaymentServiceServer)
Types ¶
type AddContactRequest ¶
type AddContactRequest struct { //* The node to add as a contact. Contact *ContactInfo `protobuf:"bytes,1,opt,name=contact,proto3" json:"contact,omitempty"` // contains filtered or unexported fields }
* Corresponds to a request to add a node as a contact.
func (*AddContactRequest) Descriptor
deprecated
func (*AddContactRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddContactRequest.ProtoReflect.Descriptor instead.
func (*AddContactRequest) GetContact ¶
func (x *AddContactRequest) GetContact() *ContactInfo
func (*AddContactRequest) ProtoMessage ¶
func (*AddContactRequest) ProtoMessage()
func (*AddContactRequest) ProtoReflect ¶
func (x *AddContactRequest) ProtoReflect() protoreflect.Message
func (*AddContactRequest) Reset ¶
func (x *AddContactRequest) Reset()
func (*AddContactRequest) String ¶
func (x *AddContactRequest) String() string
func (*AddContactRequest) Validate ¶
func (this *AddContactRequest) Validate() error
type AddContactResponse ¶
type AddContactResponse struct { //* The newly added contact's information. Contact *ContactInfo `protobuf:"bytes,1,opt,name=contact,proto3" json:"contact,omitempty"` // contains filtered or unexported fields }
* A AddContactResponse is received in response to an AddContact rpc call.
func (*AddContactResponse) Descriptor
deprecated
func (*AddContactResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddContactResponse.ProtoReflect.Descriptor instead.
func (*AddContactResponse) GetContact ¶
func (x *AddContactResponse) GetContact() *ContactInfo
func (*AddContactResponse) ProtoMessage ¶
func (*AddContactResponse) ProtoMessage()
func (*AddContactResponse) ProtoReflect ¶
func (x *AddContactResponse) ProtoReflect() protoreflect.Message
func (*AddContactResponse) Reset ¶
func (x *AddContactResponse) Reset()
func (*AddContactResponse) String ¶
func (x *AddContactResponse) String() string
func (*AddContactResponse) Validate ¶
func (this *AddContactResponse) Validate() error
type AddDiscussionRequest ¶
type AddDiscussionRequest struct { Discussion *DiscussionInfo `protobuf:"bytes,1,opt,name=discussion,proto3" json:"discussion,omitempty"` // contains filtered or unexported fields }
* Corresponds to a request to add a discussion to database.
func (*AddDiscussionRequest) Descriptor
deprecated
func (*AddDiscussionRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddDiscussionRequest.ProtoReflect.Descriptor instead.
func (*AddDiscussionRequest) GetDiscussion ¶
func (x *AddDiscussionRequest) GetDiscussion() *DiscussionInfo
func (*AddDiscussionRequest) ProtoMessage ¶
func (*AddDiscussionRequest) ProtoMessage()
func (*AddDiscussionRequest) ProtoReflect ¶
func (x *AddDiscussionRequest) ProtoReflect() protoreflect.Message
func (*AddDiscussionRequest) Reset ¶
func (x *AddDiscussionRequest) Reset()
func (*AddDiscussionRequest) String ¶
func (x *AddDiscussionRequest) String() string
func (*AddDiscussionRequest) Validate ¶
func (this *AddDiscussionRequest) Validate() error
type AddDiscussionResponse ¶
type AddDiscussionResponse struct { Discussion *DiscussionInfo `protobuf:"bytes,1,opt,name=discussion,proto3" json:"discussion,omitempty"` // contains filtered or unexported fields }
* An AddDiscussionResponse is received in response to an AddDiscussion rpc call.
func (*AddDiscussionResponse) Descriptor
deprecated
func (*AddDiscussionResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddDiscussionResponse.ProtoReflect.Descriptor instead.
func (*AddDiscussionResponse) GetDiscussion ¶
func (x *AddDiscussionResponse) GetDiscussion() *DiscussionInfo
func (*AddDiscussionResponse) ProtoMessage ¶
func (*AddDiscussionResponse) ProtoMessage()
func (*AddDiscussionResponse) ProtoReflect ¶
func (x *AddDiscussionResponse) ProtoReflect() protoreflect.Message
func (*AddDiscussionResponse) Reset ¶
func (x *AddDiscussionResponse) Reset()
func (*AddDiscussionResponse) String ¶
func (x *AddDiscussionResponse) String() string
func (*AddDiscussionResponse) Validate ¶
func (this *AddDiscussionResponse) Validate() error
type Chain ¶
type Chain struct { //* The blockchain in use. Chain string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"` //* The network a node is operating on. Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"` // contains filtered or unexported fields }
* Represents a blockchain and network for a Lightning node.
func (*Chain) Descriptor
deprecated
func (*Chain) GetNetwork ¶
func (*Chain) ProtoMessage ¶
func (*Chain) ProtoMessage()
func (*Chain) ProtoReflect ¶
func (x *Chain) ProtoReflect() protoreflect.Message
type ChannelServiceClient ¶
type ChannelServiceClient interface { //* //Opens a channel to a node. // //Returns immediately after the funding transaction has been published, //but does not wait for the channel to be considered open. OpenChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*OpenChannelResponse, error) }
ChannelServiceClient is the client API for ChannelService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewChannelServiceClient ¶
func NewChannelServiceClient(cc grpc.ClientConnInterface) ChannelServiceClient
type ChannelServiceServer ¶
type ChannelServiceServer interface { //* //Opens a channel to a node. // //Returns immediately after the funding transaction has been published, //but does not wait for the channel to be considered open. OpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error) // contains filtered or unexported methods }
ChannelServiceServer is the server API for ChannelService service. All implementations must embed UnimplementedChannelServiceServer for forward compatibility
type ConnectNodeRequest ¶
type ConnectNodeRequest struct { //* The address of the node to connect. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` //* The network location of the node. Hostport string `protobuf:"bytes,2,opt,name=hostport,proto3" json:"hostport,omitempty"` // contains filtered or unexported fields }
* Corresponds to a request to create a peer connection with a node.
func (*ConnectNodeRequest) Descriptor
deprecated
func (*ConnectNodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConnectNodeRequest.ProtoReflect.Descriptor instead.
func (*ConnectNodeRequest) GetAddress ¶
func (x *ConnectNodeRequest) GetAddress() string
func (*ConnectNodeRequest) GetHostport ¶
func (x *ConnectNodeRequest) GetHostport() string
func (*ConnectNodeRequest) ProtoMessage ¶
func (*ConnectNodeRequest) ProtoMessage()
func (*ConnectNodeRequest) ProtoReflect ¶
func (x *ConnectNodeRequest) ProtoReflect() protoreflect.Message
func (*ConnectNodeRequest) Reset ¶
func (x *ConnectNodeRequest) Reset()
func (*ConnectNodeRequest) String ¶
func (x *ConnectNodeRequest) String() string
func (*ConnectNodeRequest) Validate ¶
func (this *ConnectNodeRequest) Validate() error
type ConnectNodeResponse ¶
type ConnectNodeResponse struct {
// contains filtered or unexported fields
}
* A ConnectNodeResponse is received in response to a ConnectNode request.
func (*ConnectNodeResponse) Descriptor
deprecated
func (*ConnectNodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConnectNodeResponse.ProtoReflect.Descriptor instead.
func (*ConnectNodeResponse) ProtoMessage ¶
func (*ConnectNodeResponse) ProtoMessage()
func (*ConnectNodeResponse) ProtoReflect ¶
func (x *ConnectNodeResponse) ProtoReflect() protoreflect.Message
func (*ConnectNodeResponse) Reset ¶
func (x *ConnectNodeResponse) Reset()
func (*ConnectNodeResponse) String ¶
func (x *ConnectNodeResponse) String() string
func (*ConnectNodeResponse) Validate ¶
func (this *ConnectNodeResponse) Validate() error
type ContactInfo ¶
type ContactInfo struct { //* The node corresponding to the contact. Node *NodeInfo `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` //* The contact id. Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` //* A contact's chat nickname. DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // contains filtered or unexported fields }
* A message representing a contact of the application.
func (*ContactInfo) Descriptor
deprecated
func (*ContactInfo) Descriptor() ([]byte, []int)
Deprecated: Use ContactInfo.ProtoReflect.Descriptor instead.
func (*ContactInfo) GetDisplayName ¶
func (x *ContactInfo) GetDisplayName() string
func (*ContactInfo) GetId ¶
func (x *ContactInfo) GetId() uint64
func (*ContactInfo) GetNode ¶
func (x *ContactInfo) GetNode() *NodeInfo
func (*ContactInfo) ProtoMessage ¶
func (*ContactInfo) ProtoMessage()
func (*ContactInfo) ProtoReflect ¶
func (x *ContactInfo) ProtoReflect() protoreflect.Message
func (*ContactInfo) Reset ¶
func (x *ContactInfo) Reset()
func (*ContactInfo) String ¶
func (x *ContactInfo) String() string
func (*ContactInfo) Validate ¶
func (this *ContactInfo) Validate() error
type ContactServiceClient ¶
type ContactServiceClient interface { //* //Lists all current contacts. // //Returns a list of all contacts currently in the database. GetContacts(ctx context.Context, in *GetContactsRequest, opts ...grpc.CallOption) (*GetContactsResponse, error) //* //Adds a node as a contact. // //Accepts a node and adds them as a contact in the database. AddContact(ctx context.Context, in *AddContactRequest, opts ...grpc.CallOption) (*AddContactResponse, error) //* //Removes a contact. // //Accepts a contact id and removes it from the database. RemoveContactByID(ctx context.Context, in *RemoveContactByIDRequest, opts ...grpc.CallOption) (*RemoveContactResponse, error) //* //Removes a contact. // //Accepts a contact address and removes it from the database. RemoveContactByAddress(ctx context.Context, in *RemoveContactByAddressRequest, opts ...grpc.CallOption) (*RemoveContactResponse, error) }
ContactServiceClient is the client API for ContactService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewContactServiceClient ¶
func NewContactServiceClient(cc grpc.ClientConnInterface) ContactServiceClient
type ContactServiceServer ¶
type ContactServiceServer interface { //* //Lists all current contacts. // //Returns a list of all contacts currently in the database. GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error) //* //Adds a node as a contact. // //Accepts a node and adds them as a contact in the database. AddContact(context.Context, *AddContactRequest) (*AddContactResponse, error) //* //Removes a contact. // //Accepts a contact id and removes it from the database. RemoveContactByID(context.Context, *RemoveContactByIDRequest) (*RemoveContactResponse, error) //* //Removes a contact. // //Accepts a contact address and removes it from the database. RemoveContactByAddress(context.Context, *RemoveContactByAddressRequest) (*RemoveContactResponse, error) // contains filtered or unexported methods }
ContactServiceServer is the server API for ContactService service. All implementations must embed UnimplementedContactServiceServer for forward compatibility
type CreateInvoiceRequest ¶
type CreateInvoiceRequest struct { //* Memo of the invoice. Memo string `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"` //* The invoice amount (in millisatoshi). AmtMsat uint64 `protobuf:"varint,2,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"` //* Invoice expiry time (in seconds since creation). Expiry int64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` //* Whether to include hints for private channels. Private bool `protobuf:"varint,4,opt,name=private,proto3" json:"private,omitempty"` // contains filtered or unexported fields }
* Corresponds to an invoice creation request.
func (*CreateInvoiceRequest) Descriptor
deprecated
func (*CreateInvoiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateInvoiceRequest.ProtoReflect.Descriptor instead.
func (*CreateInvoiceRequest) GetAmtMsat ¶
func (x *CreateInvoiceRequest) GetAmtMsat() uint64
func (*CreateInvoiceRequest) GetExpiry ¶
func (x *CreateInvoiceRequest) GetExpiry() int64
func (*CreateInvoiceRequest) GetMemo ¶
func (x *CreateInvoiceRequest) GetMemo() string
func (*CreateInvoiceRequest) GetPrivate ¶
func (x *CreateInvoiceRequest) GetPrivate() bool
func (*CreateInvoiceRequest) ProtoMessage ¶
func (*CreateInvoiceRequest) ProtoMessage()
func (*CreateInvoiceRequest) ProtoReflect ¶
func (x *CreateInvoiceRequest) ProtoReflect() protoreflect.Message
func (*CreateInvoiceRequest) Reset ¶
func (x *CreateInvoiceRequest) Reset()
func (*CreateInvoiceRequest) String ¶
func (x *CreateInvoiceRequest) String() string
func (*CreateInvoiceRequest) Validate ¶
func (this *CreateInvoiceRequest) Validate() error
type CreateInvoiceResponse ¶
type CreateInvoiceResponse struct { //* The created invoice. Invoice *Invoice `protobuf:"bytes,1,opt,name=invoice,proto3" json:"invoice,omitempty"` // contains filtered or unexported fields }
* A CreateInvoiceResponse is received in response to an invoice creation request.
func (*CreateInvoiceResponse) Descriptor
deprecated
func (*CreateInvoiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateInvoiceResponse.ProtoReflect.Descriptor instead.
func (*CreateInvoiceResponse) GetInvoice ¶
func (x *CreateInvoiceResponse) GetInvoice() *Invoice
func (*CreateInvoiceResponse) ProtoMessage ¶
func (*CreateInvoiceResponse) ProtoMessage()
func (*CreateInvoiceResponse) ProtoReflect ¶
func (x *CreateInvoiceResponse) ProtoReflect() protoreflect.Message
func (*CreateInvoiceResponse) Reset ¶
func (x *CreateInvoiceResponse) Reset()
func (*CreateInvoiceResponse) String ¶
func (x *CreateInvoiceResponse) String() string
func (*CreateInvoiceResponse) Validate ¶
func (this *CreateInvoiceResponse) Validate() error
type DiscussionInfo ¶
type DiscussionInfo struct { //* The discussion id. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //* The list of participants in the discussion. Participants []string `protobuf:"bytes,2,rep,name=participants,proto3" json:"participants,omitempty"` //* The default options applicable for all discussion messages. Options *DiscussionOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` //* The id of the last read message in the discussion. LastReadMsgId uint64 `protobuf:"varint,4,opt,name=last_read_msg_id,json=lastReadMsgId,proto3" json:"last_read_msg_id,omitempty"` //* The id of the last discussion message. LastMsgId uint64 `protobuf:"varint,5,opt,name=last_msg_id,json=lastMsgId,proto3" json:"last_msg_id,omitempty"` // contains filtered or unexported fields }
* Represents the information for a specific discussion.
func (*DiscussionInfo) Descriptor
deprecated
func (*DiscussionInfo) Descriptor() ([]byte, []int)
Deprecated: Use DiscussionInfo.ProtoReflect.Descriptor instead.
func (*DiscussionInfo) GetId ¶
func (x *DiscussionInfo) GetId() uint64
func (*DiscussionInfo) GetLastMsgId ¶
func (x *DiscussionInfo) GetLastMsgId() uint64
func (*DiscussionInfo) GetLastReadMsgId ¶
func (x *DiscussionInfo) GetLastReadMsgId() uint64
func (*DiscussionInfo) GetOptions ¶
func (x *DiscussionInfo) GetOptions() *DiscussionOptions
func (*DiscussionInfo) GetParticipants ¶
func (x *DiscussionInfo) GetParticipants() []string
func (*DiscussionInfo) ProtoMessage ¶
func (*DiscussionInfo) ProtoMessage()
func (*DiscussionInfo) ProtoReflect ¶
func (x *DiscussionInfo) ProtoReflect() protoreflect.Message
func (*DiscussionInfo) Reset ¶
func (x *DiscussionInfo) Reset()
func (*DiscussionInfo) String ¶
func (x *DiscussionInfo) String() string
func (*DiscussionInfo) Validate ¶
func (this *DiscussionInfo) Validate() error
type DiscussionOptions ¶
type DiscussionOptions struct { //* The maximum fee allowed for sending a message (in millisatoshi). // //If not set, the default fee limit, as defined in the app package, is used. FeeLimitMsat int64 `protobuf:"varint,1,opt,name=fee_limit_msat,json=feeLimitMsat,proto3" json:"fee_limit_msat,omitempty"` //* Whether to send as anonymous on this discussion. Anonymous bool `protobuf:"varint,2,opt,name=anonymous,proto3" json:"anonymous,omitempty"` // contains filtered or unexported fields }
* DiscussionOptions represents the per-discussion options.
func (*DiscussionOptions) Descriptor
deprecated
func (*DiscussionOptions) Descriptor() ([]byte, []int)
Deprecated: Use DiscussionOptions.ProtoReflect.Descriptor instead.
func (*DiscussionOptions) GetAnonymous ¶
func (x *DiscussionOptions) GetAnonymous() bool
func (*DiscussionOptions) GetFeeLimitMsat ¶
func (x *DiscussionOptions) GetFeeLimitMsat() int64
func (*DiscussionOptions) ProtoMessage ¶
func (*DiscussionOptions) ProtoMessage()
func (*DiscussionOptions) ProtoReflect ¶
func (x *DiscussionOptions) ProtoReflect() protoreflect.Message
func (*DiscussionOptions) Reset ¶
func (x *DiscussionOptions) Reset()
func (*DiscussionOptions) String ¶
func (x *DiscussionOptions) String() string
func (*DiscussionOptions) Validate ¶
func (this *DiscussionOptions) Validate() error
type DiscussionServiceClient ¶
type DiscussionServiceClient interface { //* //Creates a unidirectional stream from server to client //over which all discussions' info are sent. // //The stream terminates when all discussion info is transmitted. GetDiscussions(ctx context.Context, in *GetDiscussionsRequest, opts ...grpc.CallOption) (DiscussionService_GetDiscussionsClient, error) //* //Creates a unidirectional stream from server to client //over which previously exchanged messages belonging to //a specific discussion are sent. // //The stream terminates when all requested discussion messages are transmitted. GetDiscussionHistoryByID(ctx context.Context, in *GetDiscussionHistoryByIDRequest, opts ...grpc.CallOption) (DiscussionService_GetDiscussionHistoryByIDClient, error) //* //Calculates statistics about the requested discussion. GetDiscussionStatistics(ctx context.Context, in *GetDiscussionStatisticsRequest, opts ...grpc.CallOption) (*GetDiscussionStatisticsResponse, error) //* //Adds a discussion to the database. AddDiscussion(ctx context.Context, in *AddDiscussionRequest, opts ...grpc.CallOption) (*AddDiscussionResponse, error) //* //Updates a discussion's last read message. UpdateDiscussionLastRead(ctx context.Context, in *UpdateDiscussionLastReadRequest, opts ...grpc.CallOption) (*UpdateDiscussionResponse, error) //* //Removes a discussion from the database. RemoveDiscussion(ctx context.Context, in *RemoveDiscussionRequest, opts ...grpc.CallOption) (*RemoveDiscussionResponse, error) //* //Sends a message. Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error) //* //Creates a unidirectional stream //over which to be notified of all transmitted messages. Subscribe(ctx context.Context, in *SubscribeMessagesRequest, opts ...grpc.CallOption) (DiscussionService_SubscribeClient, error) }
DiscussionServiceClient is the client API for DiscussionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDiscussionServiceClient ¶
func NewDiscussionServiceClient(cc grpc.ClientConnInterface) DiscussionServiceClient
type DiscussionServiceServer ¶
type DiscussionServiceServer interface { //* //Creates a unidirectional stream from server to client //over which all discussions' info are sent. // //The stream terminates when all discussion info is transmitted. GetDiscussions(*GetDiscussionsRequest, DiscussionService_GetDiscussionsServer) error //* //Creates a unidirectional stream from server to client //over which previously exchanged messages belonging to //a specific discussion are sent. // //The stream terminates when all requested discussion messages are transmitted. GetDiscussionHistoryByID(*GetDiscussionHistoryByIDRequest, DiscussionService_GetDiscussionHistoryByIDServer) error //* //Calculates statistics about the requested discussion. GetDiscussionStatistics(context.Context, *GetDiscussionStatisticsRequest) (*GetDiscussionStatisticsResponse, error) //* //Adds a discussion to the database. AddDiscussion(context.Context, *AddDiscussionRequest) (*AddDiscussionResponse, error) //* //Updates a discussion's last read message. UpdateDiscussionLastRead(context.Context, *UpdateDiscussionLastReadRequest) (*UpdateDiscussionResponse, error) //* //Removes a discussion from the database. RemoveDiscussion(context.Context, *RemoveDiscussionRequest) (*RemoveDiscussionResponse, error) //* //Sends a message. Send(context.Context, *SendRequest) (*SendResponse, error) //* //Creates a unidirectional stream //over which to be notified of all transmitted messages. Subscribe(*SubscribeMessagesRequest, DiscussionService_SubscribeServer) error // contains filtered or unexported methods }
DiscussionServiceServer is the server API for DiscussionService service. All implementations must embed UnimplementedDiscussionServiceServer for forward compatibility
type DiscussionService_GetDiscussionHistoryByIDClient ¶
type DiscussionService_GetDiscussionHistoryByIDClient interface { Recv() (*GetDiscussionHistoryResponse, error) grpc.ClientStream }
type DiscussionService_GetDiscussionHistoryByIDServer ¶
type DiscussionService_GetDiscussionHistoryByIDServer interface { Send(*GetDiscussionHistoryResponse) error grpc.ServerStream }
type DiscussionService_GetDiscussionsClient ¶
type DiscussionService_GetDiscussionsClient interface { Recv() (*GetDiscussionsResponse, error) grpc.ClientStream }
type DiscussionService_GetDiscussionsServer ¶
type DiscussionService_GetDiscussionsServer interface { Send(*GetDiscussionsResponse) error grpc.ServerStream }
type DiscussionService_SubscribeClient ¶
type DiscussionService_SubscribeClient interface { Recv() (*Message, error) grpc.ClientStream }
type DiscussionService_SubscribeServer ¶
type DiscussionService_SubscribeServer interface { Send(*Message) error grpc.ServerStream }
type EstimateMessageRequest ¶
type EstimateMessageRequest struct { //* The discussion id where the message is to be sent. DiscussionId uint64 `protobuf:"varint,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` //* The message payload (as a string). Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` //* The intended payment amount to the recipient of the message (in millisatoshi). AmtMsat int64 `protobuf:"varint,3,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"` //* The message option overrides for the current message. Options *MessageOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
* Corresponds to a request to estimate a message. Deprecated: Do not use.
func (*EstimateMessageRequest) Descriptor
deprecated
func (*EstimateMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use EstimateMessageRequest.ProtoReflect.Descriptor instead.
func (*EstimateMessageRequest) GetAmtMsat ¶
func (x *EstimateMessageRequest) GetAmtMsat() int64
func (*EstimateMessageRequest) GetDiscussionId ¶
func (x *EstimateMessageRequest) GetDiscussionId() uint64
func (*EstimateMessageRequest) GetOptions ¶
func (x *EstimateMessageRequest) GetOptions() *MessageOptions
func (*EstimateMessageRequest) GetPayload ¶
func (x *EstimateMessageRequest) GetPayload() string
func (*EstimateMessageRequest) ProtoMessage ¶
func (*EstimateMessageRequest) ProtoMessage()
func (*EstimateMessageRequest) ProtoReflect ¶
func (x *EstimateMessageRequest) ProtoReflect() protoreflect.Message
func (*EstimateMessageRequest) Reset ¶
func (x *EstimateMessageRequest) Reset()
func (*EstimateMessageRequest) String ¶
func (x *EstimateMessageRequest) String() string
func (*EstimateMessageRequest) Validate ¶
func (this *EstimateMessageRequest) Validate() error
type EstimateMessageResponse ¶
type EstimateMessageResponse struct { //* //The probability of successful arrival of the message, //as reported by the Lightning daemon's mission control. SuccessProb float64 `protobuf:"fixed64,1,opt,name=success_prob,json=successProb,proto3" json:"success_prob,omitempty"` //* Contains the estimated route and fees for the requested message. Message *Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
* A EstimateMessageResponse is received in response to a EstimateMessage rpc call.
func (*EstimateMessageResponse) Descriptor
deprecated
func (*EstimateMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use EstimateMessageResponse.ProtoReflect.Descriptor instead.
func (*EstimateMessageResponse) GetMessage ¶
func (x *EstimateMessageResponse) GetMessage() *Message
func (*EstimateMessageResponse) GetSuccessProb ¶
func (x *EstimateMessageResponse) GetSuccessProb() float64
func (*EstimateMessageResponse) ProtoMessage ¶
func (*EstimateMessageResponse) ProtoMessage()
func (*EstimateMessageResponse) ProtoReflect ¶
func (x *EstimateMessageResponse) ProtoReflect() protoreflect.Message
func (*EstimateMessageResponse) Reset ¶
func (x *EstimateMessageResponse) Reset()
func (*EstimateMessageResponse) String ¶
func (x *EstimateMessageResponse) String() string
func (*EstimateMessageResponse) Validate ¶
func (this *EstimateMessageResponse) Validate() error
type GetContactsRequest ¶
type GetContactsRequest struct {
// contains filtered or unexported fields
}
* Corresponds to a request to list all contacts.
func (*GetContactsRequest) Descriptor
deprecated
func (*GetContactsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetContactsRequest.ProtoReflect.Descriptor instead.
func (*GetContactsRequest) ProtoMessage ¶
func (*GetContactsRequest) ProtoMessage()
func (*GetContactsRequest) ProtoReflect ¶
func (x *GetContactsRequest) ProtoReflect() protoreflect.Message
func (*GetContactsRequest) Reset ¶
func (x *GetContactsRequest) Reset()
func (*GetContactsRequest) String ¶
func (x *GetContactsRequest) String() string
func (*GetContactsRequest) Validate ¶
func (this *GetContactsRequest) Validate() error
type GetContactsResponse ¶
type GetContactsResponse struct { //* The list of contacts in the database. Contacts []*ContactInfo `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"` // contains filtered or unexported fields }
* A GetContactsResponse is received in response to a GetContacts rpc call.
func (*GetContactsResponse) Descriptor
deprecated
func (*GetContactsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetContactsResponse.ProtoReflect.Descriptor instead.
func (*GetContactsResponse) GetContacts ¶
func (x *GetContactsResponse) GetContacts() []*ContactInfo
func (*GetContactsResponse) ProtoMessage ¶
func (*GetContactsResponse) ProtoMessage()
func (*GetContactsResponse) ProtoReflect ¶
func (x *GetContactsResponse) ProtoReflect() protoreflect.Message
func (*GetContactsResponse) Reset ¶
func (x *GetContactsResponse) Reset()
func (*GetContactsResponse) String ¶
func (x *GetContactsResponse) String() string
func (*GetContactsResponse) Validate ¶
func (this *GetContactsResponse) Validate() error
type GetDiscussionHistoryByIDRequest ¶
type GetDiscussionHistoryByIDRequest struct { //* The discussion id of interest. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //* The pagination options of the request. PageOptions *KeySetPageOptions `protobuf:"bytes,2,opt,name=page_options,json=pageOptions,proto3" json:"page_options,omitempty"` // contains filtered or unexported fields }
* Corresponds to a request to create a stream over which to receive previously exchanged messages of the identified discussion.
func (*GetDiscussionHistoryByIDRequest) Descriptor
deprecated
func (*GetDiscussionHistoryByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDiscussionHistoryByIDRequest.ProtoReflect.Descriptor instead.
func (*GetDiscussionHistoryByIDRequest) GetId ¶
func (x *GetDiscussionHistoryByIDRequest) GetId() uint64
func (*GetDiscussionHistoryByIDRequest) GetPageOptions ¶
func (x *GetDiscussionHistoryByIDRequest) GetPageOptions() *KeySetPageOptions
func (*GetDiscussionHistoryByIDRequest) ProtoMessage ¶
func (*GetDiscussionHistoryByIDRequest) ProtoMessage()
func (*GetDiscussionHistoryByIDRequest) ProtoReflect ¶
func (x *GetDiscussionHistoryByIDRequest) ProtoReflect() protoreflect.Message
func (*GetDiscussionHistoryByIDRequest) Reset ¶
func (x *GetDiscussionHistoryByIDRequest) Reset()
func (*GetDiscussionHistoryByIDRequest) String ¶
func (x *GetDiscussionHistoryByIDRequest) String() string
func (*GetDiscussionHistoryByIDRequest) Validate ¶
func (this *GetDiscussionHistoryByIDRequest) Validate() error
type GetDiscussionHistoryResponse ¶
type GetDiscussionHistoryResponse struct { //* The exchanged message. Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
* A GetDiscussionHistoryResponse is received in response to a GetHistory rpc call, and represents an exchanged message.
func (*GetDiscussionHistoryResponse) Descriptor
deprecated
func (*GetDiscussionHistoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDiscussionHistoryResponse.ProtoReflect.Descriptor instead.
func (*GetDiscussionHistoryResponse) GetMessage ¶
func (x *GetDiscussionHistoryResponse) GetMessage() *Message
func (*GetDiscussionHistoryResponse) ProtoMessage ¶
func (*GetDiscussionHistoryResponse) ProtoMessage()
func (*GetDiscussionHistoryResponse) ProtoReflect ¶
func (x *GetDiscussionHistoryResponse) ProtoReflect() protoreflect.Message
func (*GetDiscussionHistoryResponse) Reset ¶
func (x *GetDiscussionHistoryResponse) Reset()
func (*GetDiscussionHistoryResponse) String ¶
func (x *GetDiscussionHistoryResponse) String() string
func (*GetDiscussionHistoryResponse) Validate ¶
func (this *GetDiscussionHistoryResponse) Validate() error
type GetDiscussionStatisticsRequest ¶
type GetDiscussionStatisticsRequest struct { //* The discussion id. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
* Corresponds to a request for statistics about the requested discussion, identified by its id.
func (*GetDiscussionStatisticsRequest) Descriptor
deprecated
func (*GetDiscussionStatisticsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDiscussionStatisticsRequest.ProtoReflect.Descriptor instead.
func (*GetDiscussionStatisticsRequest) GetId ¶
func (x *GetDiscussionStatisticsRequest) GetId() uint64
func (*GetDiscussionStatisticsRequest) ProtoMessage ¶
func (*GetDiscussionStatisticsRequest) ProtoMessage()
func (*GetDiscussionStatisticsRequest) ProtoReflect ¶
func (x *GetDiscussionStatisticsRequest) ProtoReflect() protoreflect.Message
func (*GetDiscussionStatisticsRequest) Reset ¶
func (x *GetDiscussionStatisticsRequest) Reset()
func (*GetDiscussionStatisticsRequest) String ¶
func (x *GetDiscussionStatisticsRequest) String() string
func (*GetDiscussionStatisticsRequest) Validate ¶
func (this *GetDiscussionStatisticsRequest) Validate() error
type GetDiscussionStatisticsResponse ¶
type GetDiscussionStatisticsResponse struct { //* The total amount sent in the discussion (in millisatoshi). AmtMsatSent uint64 `protobuf:"varint,1,opt,name=amt_msat_sent,json=amtMsatSent,proto3" json:"amt_msat_sent,omitempty"` //* The total amount received in the discussion (in millisatoshi). AmtMsatReceived uint64 `protobuf:"varint,2,opt,name=amt_msat_received,json=amtMsatReceived,proto3" json:"amt_msat_received,omitempty"` //* The total amount of fees for sent messages in the discussion (in millisatoshi). AmtMsatFees uint64 `protobuf:"varint,3,opt,name=amt_msat_fees,json=amtMsatFees,proto3" json:"amt_msat_fees,omitempty"` //* The total amount of sent messages in the discussion. MessagesSent uint64 `protobuf:"varint,4,opt,name=messages_sent,json=messagesSent,proto3" json:"messages_sent,omitempty"` //* The total amount of received messages in the discussion. MessagesReceived uint64 `protobuf:"varint,5,opt,name=messages_received,json=messagesReceived,proto3" json:"messages_received,omitempty"` // contains filtered or unexported fields }
* A GetDiscussionStatisticsResponse is received in response to a GetDiscussionStatistics rpc call.
func (*GetDiscussionStatisticsResponse) Descriptor
deprecated
func (*GetDiscussionStatisticsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDiscussionStatisticsResponse.ProtoReflect.Descriptor instead.
func (*GetDiscussionStatisticsResponse) GetAmtMsatFees ¶
func (x *GetDiscussionStatisticsResponse) GetAmtMsatFees() uint64
func (*GetDiscussionStatisticsResponse) GetAmtMsatReceived ¶
func (x *GetDiscussionStatisticsResponse) GetAmtMsatReceived() uint64
func (*GetDiscussionStatisticsResponse) GetAmtMsatSent ¶
func (x *GetDiscussionStatisticsResponse) GetAmtMsatSent() uint64
func (*GetDiscussionStatisticsResponse) GetMessagesReceived ¶
func (x *GetDiscussionStatisticsResponse) GetMessagesReceived() uint64
func (*GetDiscussionStatisticsResponse) GetMessagesSent ¶
func (x *GetDiscussionStatisticsResponse) GetMessagesSent() uint64
func (*GetDiscussionStatisticsResponse) ProtoMessage ¶
func (*GetDiscussionStatisticsResponse) ProtoMessage()
func (*GetDiscussionStatisticsResponse) ProtoReflect ¶
func (x *GetDiscussionStatisticsResponse) ProtoReflect() protoreflect.Message
func (*GetDiscussionStatisticsResponse) Reset ¶
func (x *GetDiscussionStatisticsResponse) Reset()
func (*GetDiscussionStatisticsResponse) String ¶
func (x *GetDiscussionStatisticsResponse) String() string
func (*GetDiscussionStatisticsResponse) Validate ¶
func (this *GetDiscussionStatisticsResponse) Validate() error
type GetDiscussionsRequest ¶
type GetDiscussionsRequest struct {
// contains filtered or unexported fields
}
* Corresponds to a request to receive all discussion info.
func (*GetDiscussionsRequest) Descriptor
deprecated
func (*GetDiscussionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDiscussionsRequest.ProtoReflect.Descriptor instead.
func (*GetDiscussionsRequest) ProtoMessage ¶
func (*GetDiscussionsRequest) ProtoMessage()
func (*GetDiscussionsRequest) ProtoReflect ¶
func (x *GetDiscussionsRequest) ProtoReflect() protoreflect.Message
func (*GetDiscussionsRequest) Reset ¶
func (x *GetDiscussionsRequest) Reset()
func (*GetDiscussionsRequest) String ¶
func (x *GetDiscussionsRequest) String() string
func (*GetDiscussionsRequest) Validate ¶
func (this *GetDiscussionsRequest) Validate() error
type GetDiscussionsResponse ¶
type GetDiscussionsResponse struct { Discussion *DiscussionInfo `protobuf:"bytes,1,opt,name=discussion,proto3" json:"discussion,omitempty"` // contains filtered or unexported fields }
* A GetDiscussionsResponse is received in the stream returned in response to a GetDiscussions rpc call, and represents a discussion.
func (*GetDiscussionsResponse) Descriptor
deprecated
func (*GetDiscussionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDiscussionsResponse.ProtoReflect.Descriptor instead.
func (*GetDiscussionsResponse) GetDiscussion ¶
func (x *GetDiscussionsResponse) GetDiscussion() *DiscussionInfo
func (*GetDiscussionsResponse) ProtoMessage ¶
func (*GetDiscussionsResponse) ProtoMessage()
func (*GetDiscussionsResponse) ProtoReflect ¶
func (x *GetDiscussionsResponse) ProtoReflect() protoreflect.Message
func (*GetDiscussionsResponse) Reset ¶
func (x *GetDiscussionsResponse) Reset()
func (*GetDiscussionsResponse) String ¶
func (x *GetDiscussionsResponse) String() string
func (*GetDiscussionsResponse) Validate ¶
func (this *GetDiscussionsResponse) Validate() error
type GetInvoicesRequest ¶
type GetInvoicesRequest struct { //* The pagination options of the request. PageOptions *KeySetPageOptions `protobuf:"bytes,1,opt,name=page_options,json=pageOptions,proto3" json:"page_options,omitempty"` // contains filtered or unexported fields }
* Corresponds to an invoice retrieval request.
func (*GetInvoicesRequest) Descriptor
deprecated
func (*GetInvoicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInvoicesRequest.ProtoReflect.Descriptor instead.
func (*GetInvoicesRequest) GetPageOptions ¶
func (x *GetInvoicesRequest) GetPageOptions() *KeySetPageOptions
func (*GetInvoicesRequest) ProtoMessage ¶
func (*GetInvoicesRequest) ProtoMessage()
func (*GetInvoicesRequest) ProtoReflect ¶
func (x *GetInvoicesRequest) ProtoReflect() protoreflect.Message
func (*GetInvoicesRequest) Reset ¶
func (x *GetInvoicesRequest) Reset()
func (*GetInvoicesRequest) String ¶
func (x *GetInvoicesRequest) String() string
func (*GetInvoicesRequest) Validate ¶
func (this *GetInvoicesRequest) Validate() error
type GetNodesRequest ¶
type GetNodesRequest struct {
// contains filtered or unexported fields
}
* Corresponds to a request to list all nodes on the Lightning Network.
func (*GetNodesRequest) Descriptor
deprecated
func (*GetNodesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNodesRequest.ProtoReflect.Descriptor instead.
func (*GetNodesRequest) ProtoMessage ¶
func (*GetNodesRequest) ProtoMessage()
func (*GetNodesRequest) ProtoReflect ¶
func (x *GetNodesRequest) ProtoReflect() protoreflect.Message
func (*GetNodesRequest) Reset ¶
func (x *GetNodesRequest) Reset()
func (*GetNodesRequest) String ¶
func (x *GetNodesRequest) String() string
func (*GetNodesRequest) Validate ¶
func (this *GetNodesRequest) Validate() error
type GetPaymentsRequest ¶
type GetPaymentsRequest struct { //* The pagination options of the request. PageOptions *KeySetPageOptions `protobuf:"bytes,1,opt,name=page_options,json=pageOptions,proto3" json:"page_options,omitempty"` // contains filtered or unexported fields }
* Corresponds to a payment retrieval request.
func (*GetPaymentsRequest) Descriptor
deprecated
func (*GetPaymentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPaymentsRequest.ProtoReflect.Descriptor instead.
func (*GetPaymentsRequest) GetPageOptions ¶
func (x *GetPaymentsRequest) GetPageOptions() *KeySetPageOptions
func (*GetPaymentsRequest) ProtoMessage ¶
func (*GetPaymentsRequest) ProtoMessage()
func (*GetPaymentsRequest) ProtoReflect ¶
func (x *GetPaymentsRequest) ProtoReflect() protoreflect.Message
func (*GetPaymentsRequest) Reset ¶
func (x *GetPaymentsRequest) Reset()
func (*GetPaymentsRequest) String ¶
func (x *GetPaymentsRequest) String() string
func (*GetPaymentsRequest) Validate ¶
func (this *GetPaymentsRequest) Validate() error
type HTLCState ¶
type HTLCState int32
* Represents the state of a HTLC.
func (HTLCState) Descriptor ¶
func (HTLCState) Descriptor() protoreflect.EnumDescriptor
func (HTLCState) EnumDescriptor
deprecated
func (HTLCState) Number ¶
func (x HTLCState) Number() protoreflect.EnumNumber
func (HTLCState) Type ¶
func (HTLCState) Type() protoreflect.EnumType
type HopHint ¶
type HopHint struct { //* Public key of hop ingress node. Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` //* The short channel id of the channel to be used for the hop. ChanId uint64 `protobuf:"varint,2,opt,name=chan_id,json=chanId,proto3" json:"chan_id,omitempty"` //* The base fee of the channel (in millisatoshi). FeeBaseMsat uint32 `protobuf:"varint,3,opt,name=fee_base_msat,json=feeBaseMsat,proto3" json:"fee_base_msat,omitempty"` //* The fee rate of the channel (in microsatoshi/sat). FeeRate uint32 `protobuf:"varint,4,opt,name=fee_rate,json=feeRate,proto3" json:"fee_rate,omitempty"` //* The timelock delta of the channel. CltvExpiryDelta uint32 `protobuf:"varint,5,opt,name=cltv_expiry_delta,json=cltvExpiryDelta,proto3" json:"cltv_expiry_delta,omitempty"` // contains filtered or unexported fields }
* Represents a hop hint.
func (*HopHint) Descriptor
deprecated
func (*HopHint) GetCltvExpiryDelta ¶
func (*HopHint) GetFeeBaseMsat ¶
func (*HopHint) GetFeeRate ¶
func (*HopHint) ProtoMessage ¶
func (*HopHint) ProtoMessage()
func (*HopHint) ProtoReflect ¶
func (x *HopHint) ProtoReflect() protoreflect.Message
type Invoice ¶
type Invoice struct { //* The invoice memo. Memo string `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"` //* The preimage hash. Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` //* The invoice preimage. Preimage string `protobuf:"bytes,3,opt,name=preimage,proto3" json:"preimage,omitempty"` //* The payment request of the invoice. PaymentRequest string `protobuf:"bytes,4,opt,name=payment_request,json=paymentRequest,proto3" json:"payment_request,omitempty"` //* The value (amount requested) of the invoice (in millisatoshi). ValueMsat uint64 `protobuf:"varint,5,opt,name=value_msat,json=valueMsat,proto3" json:"value_msat,omitempty"` //* The amount paid to the invoice (in millisatoshi). AmtPaidMsat uint64 `protobuf:"varint,6,opt,name=amt_paid_msat,json=amtPaidMsat,proto3" json:"amt_paid_msat,omitempty"` //* The time the invoice was created. CreatedTimestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"` //* The time the invoice was settled. SettledTimestamp *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=settled_timestamp,json=settledTimestamp,proto3" json:"settled_timestamp,omitempty"` //* The invoice expiry (in seconds since creation time). Expiry int64 `protobuf:"varint,9,opt,name=expiry,proto3" json:"expiry,omitempty"` //* Whether the invoice contains hints for private channels. Private bool `protobuf:"varint,10,opt,name=private,proto3" json:"private,omitempty"` //* Invoice route hints. RouteHints []*RouteHint `protobuf:"bytes,11,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"` //* The invoice state. State InvoiceState `protobuf:"varint,12,opt,name=state,proto3,enum=services.InvoiceState" json:"state,omitempty"` //* The add index of the invoice. AddIndex uint64 `protobuf:"varint,13,opt,name=add_index,json=addIndex,proto3" json:"add_index,omitempty"` //* The settle index of the invoice. SettleIndex uint64 `protobuf:"varint,14,opt,name=settle_index,json=settleIndex,proto3" json:"settle_index,omitempty"` //* The set of HTLCs paying to the invoice. InvoiceHtlcs []*InvoiceHTLC `protobuf:"bytes,15,rep,name=invoice_htlcs,json=invoiceHtlcs,proto3" json:"invoice_htlcs,omitempty"` // contains filtered or unexported fields }
* Represents an Lightning network invoice.
func (*Invoice) Descriptor
deprecated
func (*Invoice) GetAddIndex ¶
func (*Invoice) GetAmtPaidMsat ¶
func (*Invoice) GetCreatedTimestamp ¶
func (x *Invoice) GetCreatedTimestamp() *timestamppb.Timestamp
func (*Invoice) GetInvoiceHtlcs ¶
func (x *Invoice) GetInvoiceHtlcs() []*InvoiceHTLC
func (*Invoice) GetPaymentRequest ¶
func (*Invoice) GetPreimage ¶
func (*Invoice) GetPrivate ¶
func (*Invoice) GetRouteHints ¶
func (*Invoice) GetSettleIndex ¶
func (*Invoice) GetSettledTimestamp ¶
func (x *Invoice) GetSettledTimestamp() *timestamppb.Timestamp
func (*Invoice) GetState ¶
func (x *Invoice) GetState() InvoiceState
func (*Invoice) GetValueMsat ¶
func (*Invoice) ProtoMessage ¶
func (*Invoice) ProtoMessage()
func (*Invoice) ProtoReflect ¶
func (x *Invoice) ProtoReflect() protoreflect.Message
type InvoiceHTLC ¶
type InvoiceHTLC struct { //* The short channel id of the channel the HTLC was arrived. ChanId uint64 `protobuf:"varint,1,opt,name=chan_id,json=chanId,proto3" json:"chan_id,omitempty"` //* The amount of this HTLC (in millisatoshi). AmtMsat uint64 `protobuf:"varint,2,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"` //* State of the HTLC. State InvoiceHTLCState `protobuf:"varint,3,opt,name=state,proto3,enum=services.InvoiceHTLCState" json:"state,omitempty"` //* HTLC accept timestamp. AcceptTimestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=accept_timestamp,json=acceptTimestamp,proto3" json:"accept_timestamp,omitempty"` //* HTLC resolve timestamp. ResolveTimestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=resolve_timestamp,json=resolveTimestamp,proto3" json:"resolve_timestamp,omitempty"` //* Block height at which this HTLC expires. ExpiryHeight int32 `protobuf:"varint,6,opt,name=expiry_height,json=expiryHeight,proto3" json:"expiry_height,omitempty"` // contains filtered or unexported fields }
* Represents an HTLC paying to an invoice.
func (*InvoiceHTLC) Descriptor
deprecated
func (*InvoiceHTLC) Descriptor() ([]byte, []int)
Deprecated: Use InvoiceHTLC.ProtoReflect.Descriptor instead.
func (*InvoiceHTLC) GetAcceptTimestamp ¶
func (x *InvoiceHTLC) GetAcceptTimestamp() *timestamppb.Timestamp
func (*InvoiceHTLC) GetAmtMsat ¶
func (x *InvoiceHTLC) GetAmtMsat() uint64
func (*InvoiceHTLC) GetChanId ¶
func (x *InvoiceHTLC) GetChanId() uint64
func (*InvoiceHTLC) GetExpiryHeight ¶
func (x *InvoiceHTLC) GetExpiryHeight() int32
func (*InvoiceHTLC) GetResolveTimestamp ¶
func (x *InvoiceHTLC) GetResolveTimestamp() *timestamppb.Timestamp
func (*InvoiceHTLC) GetState ¶
func (x *InvoiceHTLC) GetState() InvoiceHTLCState
func (*InvoiceHTLC) ProtoMessage ¶
func (*InvoiceHTLC) ProtoMessage()
func (*InvoiceHTLC) ProtoReflect ¶
func (x *InvoiceHTLC) ProtoReflect() protoreflect.Message
func (*InvoiceHTLC) Reset ¶
func (x *InvoiceHTLC) Reset()
func (*InvoiceHTLC) String ¶
func (x *InvoiceHTLC) String() string
func (*InvoiceHTLC) Validate ¶
func (this *InvoiceHTLC) Validate() error
type InvoiceHTLCState ¶
type InvoiceHTLCState int32
* Represents the state of an invoice HTLC.
const ( InvoiceHTLCState_INVOICE_HTLC_ACCEPTED InvoiceHTLCState = 0 InvoiceHTLCState_INVOICE_HTLC_SETTLED InvoiceHTLCState = 1 InvoiceHTLCState_INVOICE_HTLC_CANCELLED InvoiceHTLCState = 2 )
func (InvoiceHTLCState) Descriptor ¶
func (InvoiceHTLCState) Descriptor() protoreflect.EnumDescriptor
func (InvoiceHTLCState) Enum ¶
func (x InvoiceHTLCState) Enum() *InvoiceHTLCState
func (InvoiceHTLCState) EnumDescriptor
deprecated
func (InvoiceHTLCState) EnumDescriptor() ([]byte, []int)
Deprecated: Use InvoiceHTLCState.Descriptor instead.
func (InvoiceHTLCState) Number ¶
func (x InvoiceHTLCState) Number() protoreflect.EnumNumber
func (InvoiceHTLCState) String ¶
func (x InvoiceHTLCState) String() string
func (InvoiceHTLCState) Type ¶
func (InvoiceHTLCState) Type() protoreflect.EnumType
type InvoiceState ¶
type InvoiceState int32
* Represents the state of an invoice.
const ( InvoiceState_INVOICE_OPEN InvoiceState = 0 InvoiceState_INVOICE_ACCEPTED InvoiceState = 1 InvoiceState_INVOICE_SETTLED InvoiceState = 2 InvoiceState_INVOICE_CANCELLED InvoiceState = 3 )
func (InvoiceState) Descriptor ¶
func (InvoiceState) Descriptor() protoreflect.EnumDescriptor
func (InvoiceState) Enum ¶
func (x InvoiceState) Enum() *InvoiceState
func (InvoiceState) EnumDescriptor
deprecated
func (InvoiceState) EnumDescriptor() ([]byte, []int)
Deprecated: Use InvoiceState.Descriptor instead.
func (InvoiceState) Number ¶
func (x InvoiceState) Number() protoreflect.EnumNumber
func (InvoiceState) String ¶
func (x InvoiceState) String() string
func (InvoiceState) Type ¶
func (InvoiceState) Type() protoreflect.EnumType
type KeySetPageOptions ¶
type KeySetPageOptions struct { //* The id of the first element of the requested range. LastId uint64 `protobuf:"varint,1,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty"` //* The number of elements to return. PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` //* Whether the range starts or ends with last_id element. Reverse bool `protobuf:"varint,3,opt,name=reverse,proto3" json:"reverse,omitempty"` // contains filtered or unexported fields }
* Corresponds to pagination parameters for requests. Represents a request for page_size elements, terminating with the element with id last_id. If reverse is true, the returned elements end with last_id.
func (*KeySetPageOptions) Descriptor
deprecated
func (*KeySetPageOptions) Descriptor() ([]byte, []int)
Deprecated: Use KeySetPageOptions.ProtoReflect.Descriptor instead.
func (*KeySetPageOptions) GetLastId ¶
func (x *KeySetPageOptions) GetLastId() uint64
func (*KeySetPageOptions) GetPageSize ¶
func (x *KeySetPageOptions) GetPageSize() int64
func (*KeySetPageOptions) GetReverse ¶
func (x *KeySetPageOptions) GetReverse() bool
func (*KeySetPageOptions) ProtoMessage ¶
func (*KeySetPageOptions) ProtoMessage()
func (*KeySetPageOptions) ProtoReflect ¶
func (x *KeySetPageOptions) ProtoReflect() protoreflect.Message
func (*KeySetPageOptions) Reset ¶
func (x *KeySetPageOptions) Reset()
func (*KeySetPageOptions) String ¶
func (x *KeySetPageOptions) String() string
func (*KeySetPageOptions) Validate ¶
func (this *KeySetPageOptions) Validate() error
type LookupInvoiceRequest ¶
type LookupInvoiceRequest struct { //* Payment Request PayReq string `protobuf:"bytes,1,opt,name=pay_req,json=payReq,proto3" json:"pay_req,omitempty"` // contains filtered or unexported fields }
* Corresponds to an invoice lookup request.
func (*LookupInvoiceRequest) Descriptor
deprecated
func (*LookupInvoiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupInvoiceRequest.ProtoReflect.Descriptor instead.
func (*LookupInvoiceRequest) GetPayReq ¶
func (x *LookupInvoiceRequest) GetPayReq() string
func (*LookupInvoiceRequest) ProtoMessage ¶
func (*LookupInvoiceRequest) ProtoMessage()
func (*LookupInvoiceRequest) ProtoReflect ¶
func (x *LookupInvoiceRequest) ProtoReflect() protoreflect.Message
func (*LookupInvoiceRequest) Reset ¶
func (x *LookupInvoiceRequest) Reset()
func (*LookupInvoiceRequest) String ¶
func (x *LookupInvoiceRequest) String() string
func (*LookupInvoiceRequest) Validate ¶
func (this *LookupInvoiceRequest) Validate() error
type LookupInvoiceResponse ¶
type LookupInvoiceResponse struct { //* The returned invoice. Invoice *Invoice `protobuf:"bytes,1,opt,name=invoice,proto3" json:"invoice,omitempty"` // contains filtered or unexported fields }
* A LookupResponse is received in response to an invoice lookup request.
func (*LookupInvoiceResponse) Descriptor
deprecated
func (*LookupInvoiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupInvoiceResponse.ProtoReflect.Descriptor instead.
func (*LookupInvoiceResponse) GetInvoice ¶
func (x *LookupInvoiceResponse) GetInvoice() *Invoice
func (*LookupInvoiceResponse) ProtoMessage ¶
func (*LookupInvoiceResponse) ProtoMessage()
func (*LookupInvoiceResponse) ProtoReflect ¶
func (x *LookupInvoiceResponse) ProtoReflect() protoreflect.Message
func (*LookupInvoiceResponse) Reset ¶
func (x *LookupInvoiceResponse) Reset()
func (*LookupInvoiceResponse) String ¶
func (x *LookupInvoiceResponse) String() string
func (*LookupInvoiceResponse) Validate ¶
func (this *LookupInvoiceResponse) Validate() error
type Message ¶
type Message struct { //* The unique id of the message. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //* The discussion id this message is associated with. DiscussionId uint64 `protobuf:"varint,2,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` //* The Lightning address of the sender node. Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` //* The Lightning address of the receiver node. // Deprecated: Do not use. Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"` //* Whether the message sender was verified. SenderVerified bool `protobuf:"varint,11,opt,name=sender_verified,json=senderVerified,proto3" json:"sender_verified,omitempty"` //* The message payload. Payload string `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` //* The amount paid over this message (in millisatoshi). AmtMsat int64 `protobuf:"varint,6,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"` //* The total routing fees paid for this message across all routes (in millisatoshi). // //This field is meaningful only for sent and estimated messages. // // Deprecated: Do not use. TotalFeesMsat int64 `protobuf:"varint,7,opt,name=total_fees_msat,json=totalFeesMsat,proto3" json:"total_fees_msat,omitempty"` //* The time the message was sent. SentTimestamp *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=sent_timestamp,json=sentTimestamp,proto3" json:"sent_timestamp,omitempty"` //* The time the message was received. ReceivedTimestamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` //* The routes that fulfilled this message. // //This field is meaningful only for sent and estimated messages. // // Deprecated: Do not use. PaymentRoutes []*PaymentRoute `protobuf:"bytes,10,rep,name=payment_routes,json=paymentRoutes,proto3" json:"payment_routes,omitempty"` //* The preimage belonging to the associated payment. // //This field is only meaningful for received messages and //messages sent successfully to non-group discussions. // // Deprecated: Do not use. Preimage string `protobuf:"bytes,12,opt,name=preimage,proto3" json:"preimage,omitempty"` //* The payment request this message was paid to. // //If empty, corresponds to a spontaneous payment. // // Deprecated: Do not use. PayReq string `protobuf:"bytes,13,opt,name=pay_req,json=payReq,proto3" json:"pay_req,omitempty"` //* The associated Lightning entity. // Types that are assignable to LightningData: // *Message_Payments // *Message_Invoice LightningData isMessage_LightningData `protobuf_oneof:"lightning_data"` // contains filtered or unexported fields }
* Represents a message sent over the Lightning network.
func (*Message) Descriptor
deprecated
func (*Message) GetAmtMsat ¶
func (*Message) GetDiscussionId ¶
func (*Message) GetInvoice ¶
func (*Message) GetLightningData ¶
func (m *Message) GetLightningData() isMessage_LightningData
func (*Message) GetPayload ¶
func (*Message) GetPaymentRoutes
deprecated
func (x *Message) GetPaymentRoutes() []*PaymentRoute
Deprecated: Do not use.
func (*Message) GetPayments ¶
func (*Message) GetPreimage
deprecated
func (*Message) GetReceivedTimestamp ¶
func (x *Message) GetReceivedTimestamp() *timestamppb.Timestamp
func (*Message) GetReceiver
deprecated
func (*Message) GetSenderVerified ¶
func (*Message) GetSentTimestamp ¶
func (x *Message) GetSentTimestamp() *timestamppb.Timestamp
func (*Message) GetTotalFeesMsat
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageOptions ¶
type MessageOptions struct { //* The maximum fee allowed for a message (in millisatoshi). FeeLimitMsat int64 `protobuf:"varint,1,opt,name=fee_limit_msat,json=feeLimitMsat,proto3" json:"fee_limit_msat,omitempty"` //* Whether to include the sender address when sending a message. Anonymous bool `protobuf:"varint,2,opt,name=anonymous,proto3" json:"anonymous,omitempty"` // contains filtered or unexported fields }
* Represents messaging options.
func (*MessageOptions) Descriptor
deprecated
func (*MessageOptions) Descriptor() ([]byte, []int)
Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead.
func (*MessageOptions) GetAnonymous ¶
func (x *MessageOptions) GetAnonymous() bool
func (*MessageOptions) GetFeeLimitMsat ¶
func (x *MessageOptions) GetFeeLimitMsat() int64
func (*MessageOptions) ProtoMessage ¶
func (*MessageOptions) ProtoMessage()
func (*MessageOptions) ProtoReflect ¶
func (x *MessageOptions) ProtoReflect() protoreflect.Message
func (*MessageOptions) Reset ¶
func (x *MessageOptions) Reset()
func (*MessageOptions) String ¶
func (x *MessageOptions) String() string
func (*MessageOptions) Validate ¶
func (this *MessageOptions) Validate() error
type MessageServiceClient ¶
type MessageServiceClient interface { // Deprecated: Do not use. //* //Estimates the route and fees for the requested message. // //In case of failure (payment amount too large or small, payload too large), //an empty response is returned. EstimateMessage(ctx context.Context, in *EstimateMessageRequest, opts ...grpc.CallOption) (*EstimateMessageResponse, error) // Deprecated: Do not use. //* //Sends a message // //In case of failure (payment amount too large or small, payload too large), //an empty response is returned. SendMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (*SendMessageResponse, error) // Deprecated: Do not use. //* //Creates a unidirectional stream from server to client //over which all received messages are sent. // //The stream does not terminate until the client stops it. SubscribeMessages(ctx context.Context, in *SubscribeMessageRequest, opts ...grpc.CallOption) (MessageService_SubscribeMessagesClient, error) }
MessageServiceClient is the client API for MessageService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMessageServiceClient ¶
func NewMessageServiceClient(cc grpc.ClientConnInterface) MessageServiceClient
type MessageServiceServer ¶
type MessageServiceServer interface { // Deprecated: Do not use. //* //Estimates the route and fees for the requested message. // //In case of failure (payment amount too large or small, payload too large), //an empty response is returned. EstimateMessage(context.Context, *EstimateMessageRequest) (*EstimateMessageResponse, error) // Deprecated: Do not use. //* //Sends a message // //In case of failure (payment amount too large or small, payload too large), //an empty response is returned. SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error) // Deprecated: Do not use. //* //Creates a unidirectional stream from server to client //over which all received messages are sent. // //The stream does not terminate until the client stops it. SubscribeMessages(*SubscribeMessageRequest, MessageService_SubscribeMessagesServer) error // contains filtered or unexported methods }
MessageServiceServer is the server API for MessageService service. All implementations must embed UnimplementedMessageServiceServer for forward compatibility
type MessageService_SubscribeMessagesClient ¶
type MessageService_SubscribeMessagesClient interface { Recv() (*SubscribeMessageResponse, error) grpc.ClientStream }
type MessageService_SubscribeMessagesServer ¶
type MessageService_SubscribeMessagesServer interface { Send(*SubscribeMessageResponse) error grpc.ServerStream }
type Message_Invoice ¶
type Message_Invoice struct {
Invoice *Invoice `protobuf:"bytes,15,opt,name=invoice,proto3,oneof"`
}
type Message_Payments ¶
type Message_Payments struct {
Payments *Payments `protobuf:"bytes,14,opt,name=payments,proto3,oneof"`
}
type NodeInfo ¶
type NodeInfo struct { //* A node's Lightning alias. Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` //* A node's Lightning address. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
* A message representing a node on the Lightning network.
func (*NodeInfo) Descriptor
deprecated
func (*NodeInfo) GetAddress ¶
func (*NodeInfo) ProtoMessage ¶
func (*NodeInfo) ProtoMessage()
func (*NodeInfo) ProtoReflect ¶
func (x *NodeInfo) ProtoReflect() protoreflect.Message
type NodeInfoResponse ¶
type NodeInfoResponse struct { //* The list of Lightning nodes matching the query. Nodes []*NodeInfo `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
* A NodeInfoResponse is received in response to a node query.
It contains all visible nodes corresponding to the query.
func (*NodeInfoResponse) Descriptor
deprecated
func (*NodeInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use NodeInfoResponse.ProtoReflect.Descriptor instead.
func (*NodeInfoResponse) GetNodes ¶
func (x *NodeInfoResponse) GetNodes() []*NodeInfo
func (*NodeInfoResponse) ProtoMessage ¶
func (*NodeInfoResponse) ProtoMessage()
func (*NodeInfoResponse) ProtoReflect ¶
func (x *NodeInfoResponse) ProtoReflect() protoreflect.Message
func (*NodeInfoResponse) Reset ¶
func (x *NodeInfoResponse) Reset()
func (*NodeInfoResponse) String ¶
func (x *NodeInfoResponse) String() string
func (*NodeInfoResponse) Validate ¶
func (this *NodeInfoResponse) Validate() error
type NodeInfoServiceClient ¶
type NodeInfoServiceClient interface { //* //Returns version information about the current daemon. GetVersion(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*Version, error) //* //Returns info about the current underlying node. GetSelfInfo(ctx context.Context, in *SelfInfoRequest, opts ...grpc.CallOption) (*SelfInfoResponse, error) //* //Returns the balance of the current underlying node. GetSelfBalance(ctx context.Context, in *SelfBalanceRequest, opts ...grpc.CallOption) (*SelfBalanceResponse, error) //* //Lists all nodes on the Lightning network. // //Returns a list of all nodes visible to the underlying Lightning node, //including the address of the current node. //Nodes with private channels are not visible if not directly connected to //the underlying node. GetNodes(ctx context.Context, in *GetNodesRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error) //* //Searches for a Lighting node based on their Lightning address. // //Returns a list of all nodes with that address, which will be at most 1. //The node must be visible from the underlying node. SearchNodeByAddress(ctx context.Context, in *SearchNodeByAddressRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error) //* //Searches for a Lightning node based on their Lightning alias. // //Returns a list of all nodes with that alias visible from the underlying node. SearchNodeByAlias(ctx context.Context, in *SearchNodeByAliasRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error) //* //Connects a node as a peer. ConnectNode(ctx context.Context, in *ConnectNodeRequest, opts ...grpc.CallOption) (*ConnectNodeResponse, error) }
NodeInfoServiceClient is the client API for NodeInfoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNodeInfoServiceClient ¶
func NewNodeInfoServiceClient(cc grpc.ClientConnInterface) NodeInfoServiceClient
type NodeInfoServiceServer ¶
type NodeInfoServiceServer interface { //* //Returns version information about the current daemon. GetVersion(context.Context, *VersionRequest) (*Version, error) //* //Returns info about the current underlying node. GetSelfInfo(context.Context, *SelfInfoRequest) (*SelfInfoResponse, error) //* //Returns the balance of the current underlying node. GetSelfBalance(context.Context, *SelfBalanceRequest) (*SelfBalanceResponse, error) //* //Lists all nodes on the Lightning network. // //Returns a list of all nodes visible to the underlying Lightning node, //including the address of the current node. //Nodes with private channels are not visible if not directly connected to //the underlying node. GetNodes(context.Context, *GetNodesRequest) (*NodeInfoResponse, error) //* //Searches for a Lighting node based on their Lightning address. // //Returns a list of all nodes with that address, which will be at most 1. //The node must be visible from the underlying node. SearchNodeByAddress(context.Context, *SearchNodeByAddressRequest) (*NodeInfoResponse, error) //* //Searches for a Lightning node based on their Lightning alias. // //Returns a list of all nodes with that alias visible from the underlying node. SearchNodeByAlias(context.Context, *SearchNodeByAliasRequest) (*NodeInfoResponse, error) //* //Connects a node as a peer. ConnectNode(context.Context, *ConnectNodeRequest) (*ConnectNodeResponse, error) // contains filtered or unexported methods }
NodeInfoServiceServer is the server API for NodeInfoService service. All implementations must embed UnimplementedNodeInfoServiceServer for forward compatibility
type OpenChannelRequest ¶
type OpenChannelRequest struct { //* The address of the node to open a channel to. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` //* The total amount to be committed to the channel (in millisatoshi). AmtMsat uint64 `protobuf:"varint,2,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"` //* The amount to be sent to the other party (in millisatoshi). PushAmtMsat uint64 `protobuf:"varint,3,opt,name=push_amt_msat,json=pushAmtMsat,proto3" json:"push_amt_msat,omitempty"` //* The minimum number of confirmations //each input of the channel funding transaction must have. // //In case of a negative value being provided, unconfirmed funds can be used. MinInputConfs int32 `protobuf:"varint,4,opt,name=min_input_confs,json=minInputConfs,proto3" json:"min_input_confs,omitempty"` //* The number of blocks the funding transaction should confirm by. // //Used for fee estimation. TargetConfirmationBlock uint32 `` /* 133-byte string literal not displayed */ //* The fee rate (satoshis per virtual byte) the funding transaction should cost. SatPerVbyte uint64 `protobuf:"varint,6,opt,name=sat_per_vbyte,json=satPerVbyte,proto3" json:"sat_per_vbyte,omitempty"` // contains filtered or unexported fields }
* Corresponds to a request to open a channel.
func (*OpenChannelRequest) Descriptor
deprecated
func (*OpenChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use OpenChannelRequest.ProtoReflect.Descriptor instead.
func (*OpenChannelRequest) GetAddress ¶
func (x *OpenChannelRequest) GetAddress() string
func (*OpenChannelRequest) GetAmtMsat ¶
func (x *OpenChannelRequest) GetAmtMsat() uint64
func (*OpenChannelRequest) GetMinInputConfs ¶
func (x *OpenChannelRequest) GetMinInputConfs() int32
func (*OpenChannelRequest) GetPushAmtMsat ¶
func (x *OpenChannelRequest) GetPushAmtMsat() uint64
func (*OpenChannelRequest) GetSatPerVbyte ¶
func (x *OpenChannelRequest) GetSatPerVbyte() uint64
func (*OpenChannelRequest) GetTargetConfirmationBlock ¶
func (x *OpenChannelRequest) GetTargetConfirmationBlock() uint32
func (*OpenChannelRequest) ProtoMessage ¶
func (*OpenChannelRequest) ProtoMessage()
func (*OpenChannelRequest) ProtoReflect ¶
func (x *OpenChannelRequest) ProtoReflect() protoreflect.Message
func (*OpenChannelRequest) Reset ¶
func (x *OpenChannelRequest) Reset()
func (*OpenChannelRequest) String ¶
func (x *OpenChannelRequest) String() string
func (*OpenChannelRequest) Validate ¶
func (this *OpenChannelRequest) Validate() error
type OpenChannelResponse ¶
type OpenChannelResponse struct { //* The channel funding transaction. FundingTxid string `protobuf:"bytes,1,opt,name=funding_txid,json=fundingTxid,proto3" json:"funding_txid,omitempty"` //* The output index of the funding transaction. OutputIndex uint32 `protobuf:"varint,2,opt,name=output_index,json=outputIndex,proto3" json:"output_index,omitempty"` // contains filtered or unexported fields }
* An OpenChannelResponse is received in response to an OpenChannel call.
func (*OpenChannelResponse) Descriptor
deprecated
func (*OpenChannelResponse) Descriptor() ([]byte, []int)
Deprecated: Use OpenChannelResponse.ProtoReflect.Descriptor instead.
func (*OpenChannelResponse) GetFundingTxid ¶
func (x *OpenChannelResponse) GetFundingTxid() string
func (*OpenChannelResponse) GetOutputIndex ¶
func (x *OpenChannelResponse) GetOutputIndex() uint32
func (*OpenChannelResponse) ProtoMessage ¶
func (*OpenChannelResponse) ProtoMessage()
func (*OpenChannelResponse) ProtoReflect ¶
func (x *OpenChannelResponse) ProtoReflect() protoreflect.Message
func (*OpenChannelResponse) Reset ¶
func (x *OpenChannelResponse) Reset()
func (*OpenChannelResponse) String ¶
func (x *OpenChannelResponse) String() string
func (*OpenChannelResponse) Validate ¶
func (this *OpenChannelResponse) Validate() error
type PayRequest ¶
type PayRequest struct { // Types that are assignable to Destination: // *PayRequest_PayReq // *PayRequest_Address Destination isPayRequest_Destination `protobuf_oneof:"destination"` //* The payment amount (in millisatoshi). AmtMsat uint64 `protobuf:"varint,3,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"` //* The payment options. Options *PaymentOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
* Corresponds to a pay request.
func (*PayRequest) Descriptor
deprecated
func (*PayRequest) Descriptor() ([]byte, []int)
Deprecated: Use PayRequest.ProtoReflect.Descriptor instead.
func (*PayRequest) GetAddress ¶
func (x *PayRequest) GetAddress() string
func (*PayRequest) GetAmtMsat ¶
func (x *PayRequest) GetAmtMsat() uint64
func (*PayRequest) GetDestination ¶
func (m *PayRequest) GetDestination() isPayRequest_Destination
func (*PayRequest) GetOptions ¶
func (x *PayRequest) GetOptions() *PaymentOptions
func (*PayRequest) GetPayReq ¶
func (x *PayRequest) GetPayReq() string
func (*PayRequest) ProtoMessage ¶
func (*PayRequest) ProtoMessage()
func (*PayRequest) ProtoReflect ¶
func (x *PayRequest) ProtoReflect() protoreflect.Message
func (*PayRequest) Reset ¶
func (x *PayRequest) Reset()
func (*PayRequest) String ¶
func (x *PayRequest) String() string
func (*PayRequest) Validate ¶
func (this *PayRequest) Validate() error
type PayRequest_Address ¶
type PayRequest_Address struct { //* The address to pay to. Address string `protobuf:"bytes,2,opt,name=address,proto3,oneof"` }
type PayRequest_PayReq ¶
type PayRequest_PayReq struct { //* The payment request to pay to. PayReq string `protobuf:"bytes,1,opt,name=pay_req,json=payReq,proto3,oneof"` }
type PayResponse ¶
type PayResponse struct { //* The returned payment. Payment *Payment `protobuf:"bytes,1,opt,name=payment,proto3" json:"payment,omitempty"` // contains filtered or unexported fields }
* A PayResponse is received in response to a pay request.
func (*PayResponse) Descriptor
deprecated
func (*PayResponse) Descriptor() ([]byte, []int)
Deprecated: Use PayResponse.ProtoReflect.Descriptor instead.
func (*PayResponse) GetPayment ¶
func (x *PayResponse) GetPayment() *Payment
func (*PayResponse) ProtoMessage ¶
func (*PayResponse) ProtoMessage()
func (*PayResponse) ProtoReflect ¶
func (x *PayResponse) ProtoReflect() protoreflect.Message
func (*PayResponse) Reset ¶
func (x *PayResponse) Reset()
func (*PayResponse) String ¶
func (x *PayResponse) String() string
func (*PayResponse) Validate ¶
func (this *PayResponse) Validate() error
type Payment ¶
type Payment struct { //* The payment hash of the payment. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` //* The preimage of the payment hash. Preimage string `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"` //* The payment amount. AmtMsat uint64 `protobuf:"varint,3,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"` //* The time the payment was created. CreatedTimestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"` //* The time the payment was finalized. ResolvedTimestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=resolved_timestamp,json=resolvedTimestamp,proto3" json:"resolved_timestamp,omitempty"` //* The fulfilled payment request (if any). PayReq string `protobuf:"bytes,6,opt,name=pay_req,json=payReq,proto3" json:"pay_req,omitempty"` //* The payment state. State PaymentState `protobuf:"varint,7,opt,name=state,proto3,enum=services.PaymentState" json:"state,omitempty"` //* The payment index. PaymentIndex uint64 `protobuf:"varint,8,opt,name=payment_index,json=paymentIndex,proto3" json:"payment_index,omitempty"` //* The payment HTLCs. HTLCs []*PaymentHTLC `protobuf:"bytes,9,rep,name=HTLCs,proto3" json:"HTLCs,omitempty"` // contains filtered or unexported fields }
* Represents a Lightning network payment.
func (*Payment) Descriptor
deprecated
func (*Payment) GetAmtMsat ¶
func (*Payment) GetCreatedTimestamp ¶
func (x *Payment) GetCreatedTimestamp() *timestamppb.Timestamp
func (*Payment) GetHTLCs ¶
func (x *Payment) GetHTLCs() []*PaymentHTLC
func (*Payment) GetPaymentIndex ¶
func (*Payment) GetPreimage ¶
func (*Payment) GetResolvedTimestamp ¶
func (x *Payment) GetResolvedTimestamp() *timestamppb.Timestamp
func (*Payment) GetState ¶
func (x *Payment) GetState() PaymentState
func (*Payment) ProtoMessage ¶
func (*Payment) ProtoMessage()
func (*Payment) ProtoReflect ¶
func (x *Payment) ProtoReflect() protoreflect.Message
type PaymentHTLC ¶
type PaymentHTLC struct { //* The route of the HTLC. Route *PaymentRoute `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"` //* The time the HTLC was sent. AttemptTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=attempt_timestamp,json=attemptTimestamp,proto3" json:"attempt_timestamp,omitempty"` //* The time the HTLC was resolved. ResolveTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=resolve_timestamp,json=resolveTimestamp,proto3" json:"resolve_timestamp,omitempty"` //* The HTLC state. State HTLCState `protobuf:"varint,4,opt,name=state,proto3,enum=services.HTLCState" json:"state,omitempty"` //* The preimage used to settle the HTLC. Preimage string `protobuf:"bytes,5,opt,name=preimage,proto3" json:"preimage,omitempty"` // contains filtered or unexported fields }
* Represents an HTLC attempt of a payment.
func (*PaymentHTLC) Descriptor
deprecated
func (*PaymentHTLC) Descriptor() ([]byte, []int)
Deprecated: Use PaymentHTLC.ProtoReflect.Descriptor instead.
func (*PaymentHTLC) GetAttemptTimestamp ¶
func (x *PaymentHTLC) GetAttemptTimestamp() *timestamppb.Timestamp
func (*PaymentHTLC) GetPreimage ¶
func (x *PaymentHTLC) GetPreimage() string
func (*PaymentHTLC) GetResolveTimestamp ¶
func (x *PaymentHTLC) GetResolveTimestamp() *timestamppb.Timestamp
func (*PaymentHTLC) GetRoute ¶
func (x *PaymentHTLC) GetRoute() *PaymentRoute
func (*PaymentHTLC) GetState ¶
func (x *PaymentHTLC) GetState() HTLCState
func (*PaymentHTLC) ProtoMessage ¶
func (*PaymentHTLC) ProtoMessage()
func (*PaymentHTLC) ProtoReflect ¶
func (x *PaymentHTLC) ProtoReflect() protoreflect.Message
func (*PaymentHTLC) Reset ¶
func (x *PaymentHTLC) Reset()
func (*PaymentHTLC) String ¶
func (x *PaymentHTLC) String() string
func (*PaymentHTLC) Validate ¶
func (this *PaymentHTLC) Validate() error
type PaymentHop ¶
type PaymentHop struct { //* The channel id. ChanId uint64 `protobuf:"varint,1,opt,name=chan_id,json=chanId,proto3" json:"chan_id,omitempty"` //* The address of the hop node. HopAddress string `protobuf:"bytes,2,opt,name=hop_address,json=hopAddress,proto3" json:"hop_address,omitempty"` //* The amount to be forwarded by the hop (in millisatoshi). AmtToForwardMsat int64 `protobuf:"varint,3,opt,name=amt_to_forward_msat,json=amtToForwardMsat,proto3" json:"amt_to_forward_msat,omitempty"` //* The fee to be paid to the hop for forwarding the message (in millisatoshi). FeeMsat int64 `protobuf:"varint,4,opt,name=fee_msat,json=feeMsat,proto3" json:"fee_msat,omitempty"` // contains filtered or unexported fields }
* Represents a hop of a route of a message.
func (*PaymentHop) Descriptor
deprecated
func (*PaymentHop) Descriptor() ([]byte, []int)
Deprecated: Use PaymentHop.ProtoReflect.Descriptor instead.
func (*PaymentHop) GetAmtToForwardMsat ¶
func (x *PaymentHop) GetAmtToForwardMsat() int64
func (*PaymentHop) GetChanId ¶
func (x *PaymentHop) GetChanId() uint64
func (*PaymentHop) GetFeeMsat ¶
func (x *PaymentHop) GetFeeMsat() int64
func (*PaymentHop) GetHopAddress ¶
func (x *PaymentHop) GetHopAddress() string
func (*PaymentHop) ProtoMessage ¶
func (*PaymentHop) ProtoMessage()
func (*PaymentHop) ProtoReflect ¶
func (x *PaymentHop) ProtoReflect() protoreflect.Message
func (*PaymentHop) Reset ¶
func (x *PaymentHop) Reset()
func (*PaymentHop) String ¶
func (x *PaymentHop) String() string
func (*PaymentHop) Validate ¶
func (this *PaymentHop) Validate() error
type PaymentOptions ¶
type PaymentOptions struct { //* The maximum fee allowed for sending a payment. FeeLimitMsat int64 `protobuf:"varint,1,opt,name=fee_limit_msat,json=feeLimitMsat,proto3" json:"fee_limit_msat,omitempty"` // contains filtered or unexported fields }
* PaymentOptions represents the payment's options.
func (*PaymentOptions) Descriptor
deprecated
func (*PaymentOptions) Descriptor() ([]byte, []int)
Deprecated: Use PaymentOptions.ProtoReflect.Descriptor instead.
func (*PaymentOptions) GetFeeLimitMsat ¶
func (x *PaymentOptions) GetFeeLimitMsat() int64
func (*PaymentOptions) ProtoMessage ¶
func (*PaymentOptions) ProtoMessage()
func (*PaymentOptions) ProtoReflect ¶
func (x *PaymentOptions) ProtoReflect() protoreflect.Message
func (*PaymentOptions) Reset ¶
func (x *PaymentOptions) Reset()
func (*PaymentOptions) String ¶
func (x *PaymentOptions) String() string
func (*PaymentOptions) Validate ¶
func (this *PaymentOptions) Validate() error
type PaymentRoute ¶
type PaymentRoute struct { //* The list of hops for this route. Hops []*PaymentHop `protobuf:"bytes,1,rep,name=hops,proto3" json:"hops,omitempty"` //* The total timelock of the route. TotalTimelock uint32 `protobuf:"varint,2,opt,name=total_timelock,json=totalTimelock,proto3" json:"total_timelock,omitempty"` //* The amount sent via this route, disregarding the route fees (in millisatoshi). RouteAmtMsat int64 `protobuf:"varint,3,opt,name=route_amt_msat,json=routeAmtMsat,proto3" json:"route_amt_msat,omitempty"` //* The fees paid for this route (in millisatoshi). RouteFeesMsat int64 `protobuf:"varint,4,opt,name=route_fees_msat,json=routeFeesMsat,proto3" json:"route_fees_msat,omitempty"` // contains filtered or unexported fields }
* Represents a route fulfilling a payment HTLC.
func (*PaymentRoute) Descriptor
deprecated
func (*PaymentRoute) Descriptor() ([]byte, []int)
Deprecated: Use PaymentRoute.ProtoReflect.Descriptor instead.
func (*PaymentRoute) GetHops ¶
func (x *PaymentRoute) GetHops() []*PaymentHop
func (*PaymentRoute) GetRouteAmtMsat ¶
func (x *PaymentRoute) GetRouteAmtMsat() int64
func (*PaymentRoute) GetRouteFeesMsat ¶
func (x *PaymentRoute) GetRouteFeesMsat() int64
func (*PaymentRoute) GetTotalTimelock ¶
func (x *PaymentRoute) GetTotalTimelock() uint32
func (*PaymentRoute) ProtoMessage ¶
func (*PaymentRoute) ProtoMessage()
func (*PaymentRoute) ProtoReflect ¶
func (x *PaymentRoute) ProtoReflect() protoreflect.Message
func (*PaymentRoute) Reset ¶
func (x *PaymentRoute) Reset()
func (*PaymentRoute) String ¶
func (x *PaymentRoute) String() string
func (*PaymentRoute) Validate ¶
func (this *PaymentRoute) Validate() error
type PaymentServiceClient ¶
type PaymentServiceClient interface { //* //Creates a new invoice. CreateInvoice(ctx context.Context, in *CreateInvoiceRequest, opts ...grpc.CallOption) (*CreateInvoiceResponse, error) //* //Performs an invoice lookup. LookupInvoice(ctx context.Context, in *LookupInvoiceRequest, opts ...grpc.CallOption) (*LookupInvoiceResponse, error) //* //Performs a payment. Pay(ctx context.Context, in *PayRequest, opts ...grpc.CallOption) (*PayResponse, error) //* //Subscribes to invoice (final state) updates. SubscribeInvoices(ctx context.Context, in *SubscribeInvoicesRequest, opts ...grpc.CallOption) (PaymentService_SubscribeInvoicesClient, error) //* //Subscribes to payment (final state) updates. SubscribePayments(ctx context.Context, in *SubscribePaymentsRequest, opts ...grpc.CallOption) (PaymentService_SubscribePaymentsClient, error) //* //Attempts to find a route capable of carrying //the requested amount to the destination. GetRoute(ctx context.Context, in *RouteRequest, opts ...grpc.CallOption) (*RouteResponse, error) //* //Retrieves invoices from the database. GetInvoices(ctx context.Context, in *GetInvoicesRequest, opts ...grpc.CallOption) (PaymentService_GetInvoicesClient, error) //* //Retrieves payments from the database. GetPayments(ctx context.Context, in *GetPaymentsRequest, opts ...grpc.CallOption) (PaymentService_GetPaymentsClient, error) }
PaymentServiceClient is the client API for PaymentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPaymentServiceClient ¶
func NewPaymentServiceClient(cc grpc.ClientConnInterface) PaymentServiceClient
type PaymentServiceServer ¶
type PaymentServiceServer interface { //* //Creates a new invoice. CreateInvoice(context.Context, *CreateInvoiceRequest) (*CreateInvoiceResponse, error) //* //Performs an invoice lookup. LookupInvoice(context.Context, *LookupInvoiceRequest) (*LookupInvoiceResponse, error) //* //Performs a payment. Pay(context.Context, *PayRequest) (*PayResponse, error) //* //Subscribes to invoice (final state) updates. SubscribeInvoices(*SubscribeInvoicesRequest, PaymentService_SubscribeInvoicesServer) error //* //Subscribes to payment (final state) updates. SubscribePayments(*SubscribePaymentsRequest, PaymentService_SubscribePaymentsServer) error //* //Attempts to find a route capable of carrying //the requested amount to the destination. GetRoute(context.Context, *RouteRequest) (*RouteResponse, error) //* //Retrieves invoices from the database. GetInvoices(*GetInvoicesRequest, PaymentService_GetInvoicesServer) error //* //Retrieves payments from the database. GetPayments(*GetPaymentsRequest, PaymentService_GetPaymentsServer) error // contains filtered or unexported methods }
PaymentServiceServer is the server API for PaymentService service. All implementations must embed UnimplementedPaymentServiceServer for forward compatibility
type PaymentService_GetInvoicesClient ¶
type PaymentService_GetInvoicesClient interface { Recv() (*Invoice, error) grpc.ClientStream }
type PaymentService_GetInvoicesServer ¶
type PaymentService_GetInvoicesServer interface { Send(*Invoice) error grpc.ServerStream }
type PaymentService_GetPaymentsClient ¶
type PaymentService_GetPaymentsClient interface { Recv() (*Payment, error) grpc.ClientStream }
type PaymentService_GetPaymentsServer ¶
type PaymentService_GetPaymentsServer interface { Send(*Payment) error grpc.ServerStream }
type PaymentService_SubscribeInvoicesClient ¶
type PaymentService_SubscribeInvoicesClient interface { Recv() (*Invoice, error) grpc.ClientStream }
type PaymentService_SubscribeInvoicesServer ¶
type PaymentService_SubscribeInvoicesServer interface { Send(*Invoice) error grpc.ServerStream }
type PaymentService_SubscribePaymentsClient ¶
type PaymentService_SubscribePaymentsClient interface { Recv() (*Payment, error) grpc.ClientStream }
type PaymentService_SubscribePaymentsServer ¶
type PaymentService_SubscribePaymentsServer interface { Send(*Payment) error grpc.ServerStream }
type PaymentState ¶
type PaymentState int32
* Represents the state of an invoice.
const ( PaymentState_PAYMENT_UNKNOWN PaymentState = 0 PaymentState_PAYMENT_INFLIGHT PaymentState = 1 PaymentState_PAYMENT_SUCCEEDED PaymentState = 2 PaymentState_PAYMENT_FAILED PaymentState = 3 )
func (PaymentState) Descriptor ¶
func (PaymentState) Descriptor() protoreflect.EnumDescriptor
func (PaymentState) Enum ¶
func (x PaymentState) Enum() *PaymentState
func (PaymentState) EnumDescriptor
deprecated
func (PaymentState) EnumDescriptor() ([]byte, []int)
Deprecated: Use PaymentState.Descriptor instead.
func (PaymentState) Number ¶
func (x PaymentState) Number() protoreflect.EnumNumber
func (PaymentState) String ¶
func (x PaymentState) String() string
func (PaymentState) Type ¶
func (PaymentState) Type() protoreflect.EnumType
type Payments ¶
type Payments struct { //* The list of payments fulfilling a message. Payments []*Payment `protobuf:"bytes,1,rep,name=payments,proto3" json:"payments,omitempty"` // contains filtered or unexported fields }
* Represents a list of payments.
func (*Payments) Descriptor
deprecated
func (*Payments) GetPayments ¶
func (*Payments) ProtoMessage ¶
func (*Payments) ProtoMessage()
func (*Payments) ProtoReflect ¶
func (x *Payments) ProtoReflect() protoreflect.Message
type RemoveContactByAddressRequest ¶
type RemoveContactByAddressRequest struct { //* The Lightning address of the contact to remove. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
* Corresponds to a request to remove a contact.
func (*RemoveContactByAddressRequest) Descriptor
deprecated
func (*RemoveContactByAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveContactByAddressRequest.ProtoReflect.Descriptor instead.
func (*RemoveContactByAddressRequest) GetAddress ¶
func (x *RemoveContactByAddressRequest) GetAddress() string
func (*RemoveContactByAddressRequest) ProtoMessage ¶
func (*RemoveContactByAddressRequest) ProtoMessage()
func (*RemoveContactByAddressRequest) ProtoReflect ¶
func (x *RemoveContactByAddressRequest) ProtoReflect() protoreflect.Message
func (*RemoveContactByAddressRequest) Reset ¶
func (x *RemoveContactByAddressRequest) Reset()
func (*RemoveContactByAddressRequest) String ¶
func (x *RemoveContactByAddressRequest) String() string
func (*RemoveContactByAddressRequest) Validate ¶
func (this *RemoveContactByAddressRequest) Validate() error
type RemoveContactByIDRequest ¶
type RemoveContactByIDRequest struct { //* The id of the contact to remove. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
* Corresponds to a request to remove a contact.
func (*RemoveContactByIDRequest) Descriptor
deprecated
func (*RemoveContactByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveContactByIDRequest.ProtoReflect.Descriptor instead.
func (*RemoveContactByIDRequest) GetId ¶
func (x *RemoveContactByIDRequest) GetId() uint64
func (*RemoveContactByIDRequest) ProtoMessage ¶
func (*RemoveContactByIDRequest) ProtoMessage()
func (*RemoveContactByIDRequest) ProtoReflect ¶
func (x *RemoveContactByIDRequest) ProtoReflect() protoreflect.Message
func (*RemoveContactByIDRequest) Reset ¶
func (x *RemoveContactByIDRequest) Reset()
func (*RemoveContactByIDRequest) String ¶
func (x *RemoveContactByIDRequest) String() string
func (*RemoveContactByIDRequest) Validate ¶
func (this *RemoveContactByIDRequest) Validate() error
type RemoveContactResponse ¶
type RemoveContactResponse struct {
// contains filtered or unexported fields
}
* A RemoveContactResponse is received in response to a RemoveContactBy* rpc call.
func (*RemoveContactResponse) Descriptor
deprecated
func (*RemoveContactResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveContactResponse.ProtoReflect.Descriptor instead.
func (*RemoveContactResponse) ProtoMessage ¶
func (*RemoveContactResponse) ProtoMessage()
func (*RemoveContactResponse) ProtoReflect ¶
func (x *RemoveContactResponse) ProtoReflect() protoreflect.Message
func (*RemoveContactResponse) Reset ¶
func (x *RemoveContactResponse) Reset()
func (*RemoveContactResponse) String ¶
func (x *RemoveContactResponse) String() string
func (*RemoveContactResponse) Validate ¶
func (this *RemoveContactResponse) Validate() error
type RemoveDiscussionRequest ¶
type RemoveDiscussionRequest struct { //* The id of the discussion to remove. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
* Corresponds to a request to remove a discussion.
func (*RemoveDiscussionRequest) Descriptor
deprecated
func (*RemoveDiscussionRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveDiscussionRequest.ProtoReflect.Descriptor instead.
func (*RemoveDiscussionRequest) GetId ¶
func (x *RemoveDiscussionRequest) GetId() uint64
func (*RemoveDiscussionRequest) ProtoMessage ¶
func (*RemoveDiscussionRequest) ProtoMessage()
func (*RemoveDiscussionRequest) ProtoReflect ¶
func (x *RemoveDiscussionRequest) ProtoReflect() protoreflect.Message
func (*RemoveDiscussionRequest) Reset ¶
func (x *RemoveDiscussionRequest) Reset()
func (*RemoveDiscussionRequest) String ¶
func (x *RemoveDiscussionRequest) String() string
func (*RemoveDiscussionRequest) Validate ¶
func (this *RemoveDiscussionRequest) Validate() error
type RemoveDiscussionResponse ¶
type RemoveDiscussionResponse struct {
// contains filtered or unexported fields
}
* A RemoveDiscussionResponse is received in response to a RemoveDiscussion rpc call.
func (*RemoveDiscussionResponse) Descriptor
deprecated
func (*RemoveDiscussionResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveDiscussionResponse.ProtoReflect.Descriptor instead.
func (*RemoveDiscussionResponse) ProtoMessage ¶
func (*RemoveDiscussionResponse) ProtoMessage()
func (*RemoveDiscussionResponse) ProtoReflect ¶
func (x *RemoveDiscussionResponse) ProtoReflect() protoreflect.Message
func (*RemoveDiscussionResponse) Reset ¶
func (x *RemoveDiscussionResponse) Reset()
func (*RemoveDiscussionResponse) String ¶
func (x *RemoveDiscussionResponse) String() string
func (*RemoveDiscussionResponse) Validate ¶
func (this *RemoveDiscussionResponse) Validate() error
type RouteHint ¶
type RouteHint struct { //* A chain of hop hints that can reach the desetination. HopHints []*HopHint `protobuf:"bytes,1,rep,name=hop_hints,json=hopHints,proto3" json:"hop_hints,omitempty"` // contains filtered or unexported fields }
* Represents a route hint for assistance in invoice payment.
func (*RouteHint) Descriptor
deprecated
func (*RouteHint) GetHopHints ¶
func (*RouteHint) ProtoMessage ¶
func (*RouteHint) ProtoMessage()
func (*RouteHint) ProtoReflect ¶
func (x *RouteHint) ProtoReflect() protoreflect.Message
type RouteRequest ¶
type RouteRequest struct { // Types that are assignable to Destination: // *RouteRequest_PayReq // *RouteRequest_Address Destination isRouteRequest_Destination `protobuf_oneof:"destination"` //* The payment amount (in millisatoshi). AmtMsat uint64 `protobuf:"varint,3,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"` //* The payment options. Options *PaymentOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
* Corresponds to a route discovery request.
func (*RouteRequest) Descriptor
deprecated
func (*RouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use RouteRequest.ProtoReflect.Descriptor instead.
func (*RouteRequest) GetAddress ¶
func (x *RouteRequest) GetAddress() string
func (*RouteRequest) GetAmtMsat ¶
func (x *RouteRequest) GetAmtMsat() uint64
func (*RouteRequest) GetDestination ¶
func (m *RouteRequest) GetDestination() isRouteRequest_Destination
func (*RouteRequest) GetOptions ¶
func (x *RouteRequest) GetOptions() *PaymentOptions
func (*RouteRequest) GetPayReq ¶
func (x *RouteRequest) GetPayReq() string
func (*RouteRequest) ProtoMessage ¶
func (*RouteRequest) ProtoMessage()
func (*RouteRequest) ProtoReflect ¶
func (x *RouteRequest) ProtoReflect() protoreflect.Message
func (*RouteRequest) Reset ¶
func (x *RouteRequest) Reset()
func (*RouteRequest) String ¶
func (x *RouteRequest) String() string
func (*RouteRequest) Validate ¶
func (this *RouteRequest) Validate() error
type RouteRequest_Address ¶
type RouteRequest_Address struct { //* The address to pay to. Address string `protobuf:"bytes,2,opt,name=address,proto3,oneof"` }
type RouteRequest_PayReq ¶
type RouteRequest_PayReq struct { //* The payment request to pay to. PayReq string `protobuf:"bytes,1,opt,name=pay_req,json=payReq,proto3,oneof"` }
type RouteResponse ¶
type RouteResponse struct { //* A route that can fulfil the requested payment. Route *PaymentRoute `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"` // contains filtered or unexported fields }
* A RouteResponse is received in response to a route discovery request.
func (*RouteResponse) Descriptor
deprecated
func (*RouteResponse) Descriptor() ([]byte, []int)
Deprecated: Use RouteResponse.ProtoReflect.Descriptor instead.
func (*RouteResponse) GetRoute ¶
func (x *RouteResponse) GetRoute() *PaymentRoute
func (*RouteResponse) ProtoMessage ¶
func (*RouteResponse) ProtoMessage()
func (*RouteResponse) ProtoReflect ¶
func (x *RouteResponse) ProtoReflect() protoreflect.Message
func (*RouteResponse) Reset ¶
func (x *RouteResponse) Reset()
func (*RouteResponse) String ¶
func (x *RouteResponse) String() string
func (*RouteResponse) Validate ¶
func (this *RouteResponse) Validate() error
type SearchNodeByAddressRequest ¶
type SearchNodeByAddressRequest struct { //* The node address to search. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
* Corresponds to a node query based on node address.
func (*SearchNodeByAddressRequest) Descriptor
deprecated
func (*SearchNodeByAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchNodeByAddressRequest.ProtoReflect.Descriptor instead.
func (*SearchNodeByAddressRequest) GetAddress ¶
func (x *SearchNodeByAddressRequest) GetAddress() string
func (*SearchNodeByAddressRequest) ProtoMessage ¶
func (*SearchNodeByAddressRequest) ProtoMessage()
func (*SearchNodeByAddressRequest) ProtoReflect ¶
func (x *SearchNodeByAddressRequest) ProtoReflect() protoreflect.Message
func (*SearchNodeByAddressRequest) Reset ¶
func (x *SearchNodeByAddressRequest) Reset()
func (*SearchNodeByAddressRequest) String ¶
func (x *SearchNodeByAddressRequest) String() string
func (*SearchNodeByAddressRequest) Validate ¶
func (this *SearchNodeByAddressRequest) Validate() error
type SearchNodeByAliasRequest ¶
type SearchNodeByAliasRequest struct { //* The node alias substring to search. Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` // contains filtered or unexported fields }
* Corresponds to a node query based on node alias.
func (*SearchNodeByAliasRequest) Descriptor
deprecated
func (*SearchNodeByAliasRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchNodeByAliasRequest.ProtoReflect.Descriptor instead.
func (*SearchNodeByAliasRequest) GetAlias ¶
func (x *SearchNodeByAliasRequest) GetAlias() string
func (*SearchNodeByAliasRequest) ProtoMessage ¶
func (*SearchNodeByAliasRequest) ProtoMessage()
func (*SearchNodeByAliasRequest) ProtoReflect ¶
func (x *SearchNodeByAliasRequest) ProtoReflect() protoreflect.Message
func (*SearchNodeByAliasRequest) Reset ¶
func (x *SearchNodeByAliasRequest) Reset()
func (*SearchNodeByAliasRequest) String ¶
func (x *SearchNodeByAliasRequest) String() string
func (*SearchNodeByAliasRequest) Validate ¶
func (this *SearchNodeByAliasRequest) Validate() error
type SelfBalanceRequest ¶
type SelfBalanceRequest struct {
// contains filtered or unexported fields
}
* Corresponds to a query to retrieve the balance of the underlying lightning node.
func (*SelfBalanceRequest) Descriptor
deprecated
func (*SelfBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use SelfBalanceRequest.ProtoReflect.Descriptor instead.
func (*SelfBalanceRequest) ProtoMessage ¶
func (*SelfBalanceRequest) ProtoMessage()
func (*SelfBalanceRequest) ProtoReflect ¶
func (x *SelfBalanceRequest) ProtoReflect() protoreflect.Message
func (*SelfBalanceRequest) Reset ¶
func (x *SelfBalanceRequest) Reset()
func (*SelfBalanceRequest) String ¶
func (x *SelfBalanceRequest) String() string
func (*SelfBalanceRequest) Validate ¶
func (this *SelfBalanceRequest) Validate() error
type SelfBalanceResponse ¶
type SelfBalanceResponse struct { //* The confirmed balance of the node's wallet (in satoshi). WalletConfirmedSat int64 `protobuf:"varint,1,opt,name=wallet_confirmed_sat,json=walletConfirmedSat,proto3" json:"wallet_confirmed_sat,omitempty"` //* The unconfirmed balance of the node's wallet (in satoshi). WalletUnconfirmedSat int64 `protobuf:"varint,2,opt,name=wallet_unconfirmed_sat,json=walletUnconfirmedSat,proto3" json:"wallet_unconfirmed_sat,omitempty"` //* The local balance available across all open channels (in millisatoshi). ChannelLocalMsat uint64 `protobuf:"varint,3,opt,name=channel_local_msat,json=channelLocalMsat,proto3" json:"channel_local_msat,omitempty"` //* The remote balance available across all open channels (in millisatoshi). ChannelRemoteMsat uint64 `protobuf:"varint,4,opt,name=channel_remote_msat,json=channelRemoteMsat,proto3" json:"channel_remote_msat,omitempty"` //* The local balance in pending open channels (in millisatoshi). PendingOpenLocalMsat uint64 `` /* 126-byte string literal not displayed */ //* The remote balance in pending open channels (in millisatoshi). PendingOpenRemoteMsat uint64 `` /* 129-byte string literal not displayed */ //* The local balance unsettled across all open channels (in millisatoshi). UnsettledLocalMsat uint64 `protobuf:"varint,7,opt,name=unsettled_local_msat,json=unsettledLocalMsat,proto3" json:"unsettled_local_msat,omitempty"` //* The remote balance unsettled across all open channels (in millisatoshi). UnsettledRemoteMsat uint64 `protobuf:"varint,8,opt,name=unsettled_remote_msat,json=unsettledRemoteMsat,proto3" json:"unsettled_remote_msat,omitempty"` // contains filtered or unexported fields }
* A SelfBalanceResponse is received in response to a GetSelfBalance rpc call.
func (*SelfBalanceResponse) Descriptor
deprecated
func (*SelfBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use SelfBalanceResponse.ProtoReflect.Descriptor instead.
func (*SelfBalanceResponse) GetChannelLocalMsat ¶
func (x *SelfBalanceResponse) GetChannelLocalMsat() uint64
func (*SelfBalanceResponse) GetChannelRemoteMsat ¶
func (x *SelfBalanceResponse) GetChannelRemoteMsat() uint64
func (*SelfBalanceResponse) GetPendingOpenLocalMsat ¶
func (x *SelfBalanceResponse) GetPendingOpenLocalMsat() uint64
func (*SelfBalanceResponse) GetPendingOpenRemoteMsat ¶
func (x *SelfBalanceResponse) GetPendingOpenRemoteMsat() uint64
func (*SelfBalanceResponse) GetUnsettledLocalMsat ¶
func (x *SelfBalanceResponse) GetUnsettledLocalMsat() uint64
func (*SelfBalanceResponse) GetUnsettledRemoteMsat ¶
func (x *SelfBalanceResponse) GetUnsettledRemoteMsat() uint64
func (*SelfBalanceResponse) GetWalletConfirmedSat ¶
func (x *SelfBalanceResponse) GetWalletConfirmedSat() int64
func (*SelfBalanceResponse) GetWalletUnconfirmedSat ¶
func (x *SelfBalanceResponse) GetWalletUnconfirmedSat() int64
func (*SelfBalanceResponse) ProtoMessage ¶
func (*SelfBalanceResponse) ProtoMessage()
func (*SelfBalanceResponse) ProtoReflect ¶
func (x *SelfBalanceResponse) ProtoReflect() protoreflect.Message
func (*SelfBalanceResponse) Reset ¶
func (x *SelfBalanceResponse) Reset()
func (*SelfBalanceResponse) String ¶
func (x *SelfBalanceResponse) String() string
func (*SelfBalanceResponse) Validate ¶
func (this *SelfBalanceResponse) Validate() error
type SelfInfoRequest ¶
type SelfInfoRequest struct {
// contains filtered or unexported fields
}
* Correponds to a query to retrieve the information of the underlying lightning node.
func (*SelfInfoRequest) Descriptor
deprecated
func (*SelfInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use SelfInfoRequest.ProtoReflect.Descriptor instead.
func (*SelfInfoRequest) ProtoMessage ¶
func (*SelfInfoRequest) ProtoMessage()
func (*SelfInfoRequest) ProtoReflect ¶
func (x *SelfInfoRequest) ProtoReflect() protoreflect.Message
func (*SelfInfoRequest) Reset ¶
func (x *SelfInfoRequest) Reset()
func (*SelfInfoRequest) String ¶
func (x *SelfInfoRequest) String() string
func (*SelfInfoRequest) Validate ¶
func (this *SelfInfoRequest) Validate() error
type SelfInfoResponse ¶
type SelfInfoResponse struct { //* General node information about the current node. Info *NodeInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` //* A list of chain networks the node is operating on. Chains []*Chain `protobuf:"bytes,2,rep,name=chains,proto3" json:"chains,omitempty"` // contains filtered or unexported fields }
* A SelfInfoResponse is received in response to a GetSelfInfo rpc call.
func (*SelfInfoResponse) Descriptor
deprecated
func (*SelfInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use SelfInfoResponse.ProtoReflect.Descriptor instead.
func (*SelfInfoResponse) GetChains ¶
func (x *SelfInfoResponse) GetChains() []*Chain
func (*SelfInfoResponse) GetInfo ¶
func (x *SelfInfoResponse) GetInfo() *NodeInfo
func (*SelfInfoResponse) ProtoMessage ¶
func (*SelfInfoResponse) ProtoMessage()
func (*SelfInfoResponse) ProtoReflect ¶
func (x *SelfInfoResponse) ProtoReflect() protoreflect.Message
func (*SelfInfoResponse) Reset ¶
func (x *SelfInfoResponse) Reset()
func (*SelfInfoResponse) String ¶
func (x *SelfInfoResponse) String() string
func (*SelfInfoResponse) Validate ¶
func (this *SelfInfoResponse) Validate() error
type SendMessageRequest ¶
type SendMessageRequest struct { //* The discussion id where the message is to be sent. DiscussionId uint64 `protobuf:"varint,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` //* The message payload (as a string). Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` //* The intended payment amount to the recipient of the message (in millisatoshi). AmtMsat int64 `protobuf:"varint,3,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"` //* A payment request (invoice) to pay to. // //If empty, a spontaneous message is sent. //If specified, discussion_id is not used and should not be specified. //Instead, the message will be sent to the discussion associated with //the recipient specified by the the payment request (which will be //created if it does not exist). //The discussion_id will be returned in the response. PayReq string `protobuf:"bytes,5,opt,name=pay_req,json=payReq,proto3" json:"pay_req,omitempty"` //* The message option overrides for the current message. Options *MessageOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
* Corresponds to a request to send a message. Deprecated: Do not use.
func (*SendMessageRequest) Descriptor
deprecated
func (*SendMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageRequest.ProtoReflect.Descriptor instead.
func (*SendMessageRequest) GetAmtMsat ¶
func (x *SendMessageRequest) GetAmtMsat() int64
func (*SendMessageRequest) GetDiscussionId ¶
func (x *SendMessageRequest) GetDiscussionId() uint64
func (*SendMessageRequest) GetOptions ¶
func (x *SendMessageRequest) GetOptions() *MessageOptions
func (*SendMessageRequest) GetPayReq ¶
func (x *SendMessageRequest) GetPayReq() string
func (*SendMessageRequest) GetPayload ¶
func (x *SendMessageRequest) GetPayload() string
func (*SendMessageRequest) ProtoMessage ¶
func (*SendMessageRequest) ProtoMessage()
func (*SendMessageRequest) ProtoReflect ¶
func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
func (*SendMessageRequest) Reset ¶
func (x *SendMessageRequest) Reset()
func (*SendMessageRequest) String ¶
func (x *SendMessageRequest) String() string
func (*SendMessageRequest) Validate ¶
func (this *SendMessageRequest) Validate() error
type SendMessageResponse ¶
type SendMessageResponse struct { //* The sent message. SentMessage *Message `protobuf:"bytes,1,opt,name=sent_message,json=sentMessage,proto3" json:"sent_message,omitempty"` // contains filtered or unexported fields }
* A SendMessageResponse is received in response to a SendMessage rpc call.
func (*SendMessageResponse) Descriptor
deprecated
func (*SendMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageResponse.ProtoReflect.Descriptor instead.
func (*SendMessageResponse) GetSentMessage ¶
func (x *SendMessageResponse) GetSentMessage() *Message
func (*SendMessageResponse) ProtoMessage ¶
func (*SendMessageResponse) ProtoMessage()
func (*SendMessageResponse) ProtoReflect ¶
func (x *SendMessageResponse) ProtoReflect() protoreflect.Message
func (*SendMessageResponse) Reset ¶
func (x *SendMessageResponse) Reset()
func (*SendMessageResponse) String ¶
func (x *SendMessageResponse) String() string
func (*SendMessageResponse) Validate ¶
func (this *SendMessageResponse) Validate() error
type SendRequest ¶
type SendRequest struct { // Types that are assignable to Destination: // *SendRequest_DiscussionId // *SendRequest_PayReq Destination isSendRequest_Destination `protobuf_oneof:"destination"` //* The intended amount to be used for payment to each recipient. AmtMsat int64 `protobuf:"varint,3,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"` //* The message payload. Payload string `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` //* The message options for the current message (overriding any discussion options). Options *MessageOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
* Represents a request to send a message.
func (*SendRequest) Descriptor
deprecated
func (*SendRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.
func (*SendRequest) GetAmtMsat ¶
func (x *SendRequest) GetAmtMsat() int64
func (*SendRequest) GetDestination ¶
func (m *SendRequest) GetDestination() isSendRequest_Destination
func (*SendRequest) GetDiscussionId ¶
func (x *SendRequest) GetDiscussionId() uint64
func (*SendRequest) GetOptions ¶
func (x *SendRequest) GetOptions() *MessageOptions
func (*SendRequest) GetPayReq ¶
func (x *SendRequest) GetPayReq() string
func (*SendRequest) GetPayload ¶
func (x *SendRequest) GetPayload() string
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) ProtoReflect ¶
func (x *SendRequest) ProtoReflect() protoreflect.Message
func (*SendRequest) Reset ¶
func (x *SendRequest) Reset()
func (*SendRequest) String ¶
func (x *SendRequest) String() string
func (*SendRequest) Validate ¶
func (this *SendRequest) Validate() error
type SendRequest_DiscussionId ¶
type SendRequest_DiscussionId struct { //* The discussion where the message is to be sent. DiscussionId uint64 `protobuf:"varint,1,opt,name=discussion_id,json=discussionId,proto3,oneof"` }
type SendRequest_PayReq ¶
type SendRequest_PayReq struct { //* The payment request to fulfil. // //If empty, a spontaneous message is sent. //A discussion with the recipient node will be created if it does not exist. PayReq string `protobuf:"bytes,2,opt,name=pay_req,json=payReq,proto3,oneof"` }
type SendResponse ¶
type SendResponse struct { //* The sent message. SentMessage *Message `protobuf:"bytes,1,opt,name=sent_message,json=sentMessage,proto3" json:"sent_message,omitempty"` // contains filtered or unexported fields }
* A SendResponse is received in response to a Send rpc call.
func (*SendResponse) Descriptor
deprecated
func (*SendResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.
func (*SendResponse) GetSentMessage ¶
func (x *SendResponse) GetSentMessage() *Message
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) ProtoReflect ¶
func (x *SendResponse) ProtoReflect() protoreflect.Message
func (*SendResponse) Reset ¶
func (x *SendResponse) Reset()
func (*SendResponse) String ¶
func (x *SendResponse) String() string
func (*SendResponse) Validate ¶
func (this *SendResponse) Validate() error
type SubscribeInvoicesRequest ¶
type SubscribeInvoicesRequest struct {
// contains filtered or unexported fields
}
* Corresponds to a subscription request for invoice updates.
func (*SubscribeInvoicesRequest) Descriptor
deprecated
func (*SubscribeInvoicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeInvoicesRequest.ProtoReflect.Descriptor instead.
func (*SubscribeInvoicesRequest) ProtoMessage ¶
func (*SubscribeInvoicesRequest) ProtoMessage()
func (*SubscribeInvoicesRequest) ProtoReflect ¶
func (x *SubscribeInvoicesRequest) ProtoReflect() protoreflect.Message
func (*SubscribeInvoicesRequest) Reset ¶
func (x *SubscribeInvoicesRequest) Reset()
func (*SubscribeInvoicesRequest) String ¶
func (x *SubscribeInvoicesRequest) String() string
func (*SubscribeInvoicesRequest) Validate ¶
func (this *SubscribeInvoicesRequest) Validate() error
type SubscribeMessageRequest
deprecated
type SubscribeMessageRequest struct {
// contains filtered or unexported fields
}
* Corresponds to a request to create a stream over which to be notified of received messages.
Deprecated: Do not use.
func (*SubscribeMessageRequest) Descriptor
deprecated
func (*SubscribeMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeMessageRequest.ProtoReflect.Descriptor instead.
func (*SubscribeMessageRequest) ProtoMessage ¶
func (*SubscribeMessageRequest) ProtoMessage()
func (*SubscribeMessageRequest) ProtoReflect ¶
func (x *SubscribeMessageRequest) ProtoReflect() protoreflect.Message
func (*SubscribeMessageRequest) Reset ¶
func (x *SubscribeMessageRequest) Reset()
func (*SubscribeMessageRequest) String ¶
func (x *SubscribeMessageRequest) String() string
func (*SubscribeMessageRequest) Validate ¶
func (this *SubscribeMessageRequest) Validate() error
type SubscribeMessageResponse ¶
type SubscribeMessageResponse struct { //* The received message. ReceivedMessage *Message `protobuf:"bytes,1,opt,name=received_message,json=receivedMessage,proto3" json:"received_message,omitempty"` // contains filtered or unexported fields }
* A SubscribeMessageResponse is received in the stream returned in response to a SubscribeMessages rpc call, and represents a received message.
func (*SubscribeMessageResponse) Descriptor
deprecated
func (*SubscribeMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeMessageResponse.ProtoReflect.Descriptor instead.
func (*SubscribeMessageResponse) GetReceivedMessage ¶
func (x *SubscribeMessageResponse) GetReceivedMessage() *Message
func (*SubscribeMessageResponse) ProtoMessage ¶
func (*SubscribeMessageResponse) ProtoMessage()
func (*SubscribeMessageResponse) ProtoReflect ¶
func (x *SubscribeMessageResponse) ProtoReflect() protoreflect.Message
func (*SubscribeMessageResponse) Reset ¶
func (x *SubscribeMessageResponse) Reset()
func (*SubscribeMessageResponse) String ¶
func (x *SubscribeMessageResponse) String() string
func (*SubscribeMessageResponse) Validate ¶
func (this *SubscribeMessageResponse) Validate() error
type SubscribeMessagesRequest ¶
type SubscribeMessagesRequest struct {
// contains filtered or unexported fields
}
* Corresponds to a message subscription request.
func (*SubscribeMessagesRequest) Descriptor
deprecated
func (*SubscribeMessagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeMessagesRequest.ProtoReflect.Descriptor instead.
func (*SubscribeMessagesRequest) ProtoMessage ¶
func (*SubscribeMessagesRequest) ProtoMessage()
func (*SubscribeMessagesRequest) ProtoReflect ¶
func (x *SubscribeMessagesRequest) ProtoReflect() protoreflect.Message
func (*SubscribeMessagesRequest) Reset ¶
func (x *SubscribeMessagesRequest) Reset()
func (*SubscribeMessagesRequest) String ¶
func (x *SubscribeMessagesRequest) String() string
func (*SubscribeMessagesRequest) Validate ¶
func (this *SubscribeMessagesRequest) Validate() error
type SubscribePaymentsRequest ¶
type SubscribePaymentsRequest struct {
// contains filtered or unexported fields
}
* Corresponds to a subscription request for payment updates.
func (*SubscribePaymentsRequest) Descriptor
deprecated
func (*SubscribePaymentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribePaymentsRequest.ProtoReflect.Descriptor instead.
func (*SubscribePaymentsRequest) ProtoMessage ¶
func (*SubscribePaymentsRequest) ProtoMessage()
func (*SubscribePaymentsRequest) ProtoReflect ¶
func (x *SubscribePaymentsRequest) ProtoReflect() protoreflect.Message
func (*SubscribePaymentsRequest) Reset ¶
func (x *SubscribePaymentsRequest) Reset()
func (*SubscribePaymentsRequest) String ¶
func (x *SubscribePaymentsRequest) String() string
func (*SubscribePaymentsRequest) Validate ¶
func (this *SubscribePaymentsRequest) Validate() error
type UnimplementedChannelServiceServer ¶
type UnimplementedChannelServiceServer struct { }
UnimplementedChannelServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedChannelServiceServer) OpenChannel ¶
func (UnimplementedChannelServiceServer) OpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error)
type UnimplementedContactServiceServer ¶
type UnimplementedContactServiceServer struct { }
UnimplementedContactServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedContactServiceServer) AddContact ¶
func (UnimplementedContactServiceServer) AddContact(context.Context, *AddContactRequest) (*AddContactResponse, error)
func (UnimplementedContactServiceServer) GetContacts ¶
func (UnimplementedContactServiceServer) GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error)
func (UnimplementedContactServiceServer) RemoveContactByAddress ¶
func (UnimplementedContactServiceServer) RemoveContactByAddress(context.Context, *RemoveContactByAddressRequest) (*RemoveContactResponse, error)
func (UnimplementedContactServiceServer) RemoveContactByID ¶
func (UnimplementedContactServiceServer) RemoveContactByID(context.Context, *RemoveContactByIDRequest) (*RemoveContactResponse, error)
type UnimplementedDiscussionServiceServer ¶
type UnimplementedDiscussionServiceServer struct { }
UnimplementedDiscussionServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDiscussionServiceServer) AddDiscussion ¶
func (UnimplementedDiscussionServiceServer) AddDiscussion(context.Context, *AddDiscussionRequest) (*AddDiscussionResponse, error)
func (UnimplementedDiscussionServiceServer) GetDiscussionHistoryByID ¶
func (UnimplementedDiscussionServiceServer) GetDiscussionHistoryByID(*GetDiscussionHistoryByIDRequest, DiscussionService_GetDiscussionHistoryByIDServer) error
func (UnimplementedDiscussionServiceServer) GetDiscussionStatistics ¶
func (UnimplementedDiscussionServiceServer) GetDiscussionStatistics(context.Context, *GetDiscussionStatisticsRequest) (*GetDiscussionStatisticsResponse, error)
func (UnimplementedDiscussionServiceServer) GetDiscussions ¶
func (UnimplementedDiscussionServiceServer) GetDiscussions(*GetDiscussionsRequest, DiscussionService_GetDiscussionsServer) error
func (UnimplementedDiscussionServiceServer) RemoveDiscussion ¶
func (UnimplementedDiscussionServiceServer) RemoveDiscussion(context.Context, *RemoveDiscussionRequest) (*RemoveDiscussionResponse, error)
func (UnimplementedDiscussionServiceServer) Send ¶
func (UnimplementedDiscussionServiceServer) Send(context.Context, *SendRequest) (*SendResponse, error)
func (UnimplementedDiscussionServiceServer) UpdateDiscussionLastRead ¶
func (UnimplementedDiscussionServiceServer) UpdateDiscussionLastRead(context.Context, *UpdateDiscussionLastReadRequest) (*UpdateDiscussionResponse, error)
type UnimplementedMessageServiceServer ¶
type UnimplementedMessageServiceServer struct { }
UnimplementedMessageServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMessageServiceServer) EstimateMessage ¶
func (UnimplementedMessageServiceServer) EstimateMessage(context.Context, *EstimateMessageRequest) (*EstimateMessageResponse, error)
func (UnimplementedMessageServiceServer) SendMessage ¶
func (UnimplementedMessageServiceServer) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
func (UnimplementedMessageServiceServer) SubscribeMessages ¶
func (UnimplementedMessageServiceServer) SubscribeMessages(*SubscribeMessageRequest, MessageService_SubscribeMessagesServer) error
type UnimplementedNodeInfoServiceServer ¶
type UnimplementedNodeInfoServiceServer struct { }
UnimplementedNodeInfoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNodeInfoServiceServer) ConnectNode ¶
func (UnimplementedNodeInfoServiceServer) ConnectNode(context.Context, *ConnectNodeRequest) (*ConnectNodeResponse, error)
func (UnimplementedNodeInfoServiceServer) GetNodes ¶
func (UnimplementedNodeInfoServiceServer) GetNodes(context.Context, *GetNodesRequest) (*NodeInfoResponse, error)
func (UnimplementedNodeInfoServiceServer) GetSelfBalance ¶
func (UnimplementedNodeInfoServiceServer) GetSelfBalance(context.Context, *SelfBalanceRequest) (*SelfBalanceResponse, error)
func (UnimplementedNodeInfoServiceServer) GetSelfInfo ¶
func (UnimplementedNodeInfoServiceServer) GetSelfInfo(context.Context, *SelfInfoRequest) (*SelfInfoResponse, error)
func (UnimplementedNodeInfoServiceServer) GetVersion ¶
func (UnimplementedNodeInfoServiceServer) GetVersion(context.Context, *VersionRequest) (*Version, error)
func (UnimplementedNodeInfoServiceServer) SearchNodeByAddress ¶
func (UnimplementedNodeInfoServiceServer) SearchNodeByAddress(context.Context, *SearchNodeByAddressRequest) (*NodeInfoResponse, error)
func (UnimplementedNodeInfoServiceServer) SearchNodeByAlias ¶
func (UnimplementedNodeInfoServiceServer) SearchNodeByAlias(context.Context, *SearchNodeByAliasRequest) (*NodeInfoResponse, error)
type UnimplementedPaymentServiceServer ¶
type UnimplementedPaymentServiceServer struct { }
UnimplementedPaymentServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPaymentServiceServer) CreateInvoice ¶
func (UnimplementedPaymentServiceServer) CreateInvoice(context.Context, *CreateInvoiceRequest) (*CreateInvoiceResponse, error)
func (UnimplementedPaymentServiceServer) GetInvoices ¶
func (UnimplementedPaymentServiceServer) GetInvoices(*GetInvoicesRequest, PaymentService_GetInvoicesServer) error
func (UnimplementedPaymentServiceServer) GetPayments ¶
func (UnimplementedPaymentServiceServer) GetPayments(*GetPaymentsRequest, PaymentService_GetPaymentsServer) error
func (UnimplementedPaymentServiceServer) GetRoute ¶
func (UnimplementedPaymentServiceServer) GetRoute(context.Context, *RouteRequest) (*RouteResponse, error)
func (UnimplementedPaymentServiceServer) LookupInvoice ¶
func (UnimplementedPaymentServiceServer) LookupInvoice(context.Context, *LookupInvoiceRequest) (*LookupInvoiceResponse, error)
func (UnimplementedPaymentServiceServer) Pay ¶
func (UnimplementedPaymentServiceServer) Pay(context.Context, *PayRequest) (*PayResponse, error)
func (UnimplementedPaymentServiceServer) SubscribeInvoices ¶
func (UnimplementedPaymentServiceServer) SubscribeInvoices(*SubscribeInvoicesRequest, PaymentService_SubscribeInvoicesServer) error
func (UnimplementedPaymentServiceServer) SubscribePayments ¶
func (UnimplementedPaymentServiceServer) SubscribePayments(*SubscribePaymentsRequest, PaymentService_SubscribePaymentsServer) error
type UnsafeChannelServiceServer ¶
type UnsafeChannelServiceServer interface {
// contains filtered or unexported methods
}
UnsafeChannelServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChannelServiceServer will result in compilation errors.
type UnsafeContactServiceServer ¶
type UnsafeContactServiceServer interface {
// contains filtered or unexported methods
}
UnsafeContactServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ContactServiceServer will result in compilation errors.
type UnsafeDiscussionServiceServer ¶
type UnsafeDiscussionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDiscussionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DiscussionServiceServer will result in compilation errors.
type UnsafeMessageServiceServer ¶
type UnsafeMessageServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMessageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MessageServiceServer will result in compilation errors.
type UnsafeNodeInfoServiceServer ¶
type UnsafeNodeInfoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNodeInfoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeInfoServiceServer will result in compilation errors.
type UnsafePaymentServiceServer ¶
type UnsafePaymentServiceServer interface {
// contains filtered or unexported methods
}
UnsafePaymentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PaymentServiceServer will result in compilation errors.
type UpdateDiscussionLastReadRequest ¶
type UpdateDiscussionLastReadRequest struct { //* The discussion id. DiscussionId uint64 `protobuf:"varint,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` //* The message id to mark as the last read. LastReadMsgId uint64 `protobuf:"varint,2,opt,name=last_read_msg_id,json=lastReadMsgId,proto3" json:"last_read_msg_id,omitempty"` // contains filtered or unexported fields }
* Represents a request to update the last read discussion message.
func (*UpdateDiscussionLastReadRequest) Descriptor
deprecated
func (*UpdateDiscussionLastReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDiscussionLastReadRequest.ProtoReflect.Descriptor instead.
func (*UpdateDiscussionLastReadRequest) GetDiscussionId ¶
func (x *UpdateDiscussionLastReadRequest) GetDiscussionId() uint64
func (*UpdateDiscussionLastReadRequest) GetLastReadMsgId ¶
func (x *UpdateDiscussionLastReadRequest) GetLastReadMsgId() uint64
func (*UpdateDiscussionLastReadRequest) ProtoMessage ¶
func (*UpdateDiscussionLastReadRequest) ProtoMessage()
func (*UpdateDiscussionLastReadRequest) ProtoReflect ¶
func (x *UpdateDiscussionLastReadRequest) ProtoReflect() protoreflect.Message
func (*UpdateDiscussionLastReadRequest) Reset ¶
func (x *UpdateDiscussionLastReadRequest) Reset()
func (*UpdateDiscussionLastReadRequest) String ¶
func (x *UpdateDiscussionLastReadRequest) String() string
func (*UpdateDiscussionLastReadRequest) Validate ¶
func (this *UpdateDiscussionLastReadRequest) Validate() error
type UpdateDiscussionResponse ¶
type UpdateDiscussionResponse struct {
// contains filtered or unexported fields
}
* An UpdateDiscussionResponse is returned in reponse to an UpdateDiscussionLastRead request.
func (*UpdateDiscussionResponse) Descriptor
deprecated
func (*UpdateDiscussionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDiscussionResponse.ProtoReflect.Descriptor instead.
func (*UpdateDiscussionResponse) ProtoMessage ¶
func (*UpdateDiscussionResponse) ProtoMessage()
func (*UpdateDiscussionResponse) ProtoReflect ¶
func (x *UpdateDiscussionResponse) ProtoReflect() protoreflect.Message
func (*UpdateDiscussionResponse) Reset ¶
func (x *UpdateDiscussionResponse) Reset()
func (*UpdateDiscussionResponse) String ¶
func (x *UpdateDiscussionResponse) String() string
func (*UpdateDiscussionResponse) Validate ¶
func (this *UpdateDiscussionResponse) Validate() error
type Version ¶
type Version struct { //* The semantic version of c13n. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` //* The commit descriptor of the build. Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` //* The commit hash of the build. CommitHash string `protobuf:"bytes,3,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"` // contains filtered or unexported fields }
* A message containing the current c13n version and build information.
func (*Version) Descriptor
deprecated
func (*Version) GetCommitHash ¶
func (*Version) GetVersion ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) ProtoReflect ¶
func (x *Version) ProtoReflect() protoreflect.Message
type VersionRequest ¶
type VersionRequest struct {
// contains filtered or unexported fields
}
func (*VersionRequest) Descriptor
deprecated
func (*VersionRequest) Descriptor() ([]byte, []int)
Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.
func (*VersionRequest) ProtoMessage ¶
func (*VersionRequest) ProtoMessage()
func (*VersionRequest) ProtoReflect ¶
func (x *VersionRequest) ProtoReflect() protoreflect.Message
func (*VersionRequest) Reset ¶
func (x *VersionRequest) Reset()
func (*VersionRequest) String ¶
func (x *VersionRequest) String() string
func (*VersionRequest) Validate ¶
func (this *VersionRequest) Validate() error