Documentation ¶
Index ¶
- func InitLSP() error
- type Server
- func (s *Server) CheckChannels(ctx context.Context, in *breez.CheckChannelsRequest) (*breez.CheckChannelsReply, error)
- func (s *Server) LSPFullList(ctx context.Context, in *breez.LSPFullListRequest) (*breez.LSPFullListReply, error)
- func (s *Server) LSPList(ctx context.Context, in *breez.LSPListRequest) (*breez.LSPListReply, error)
- func (s *Server) RegisterPayment(ctx context.Context, in *breez.RegisterPaymentRequest) (*breez.RegisterPaymentReply, error)
- func (s *Server) RegisterPaymentNotification(ctx context.Context, in *breez.RegisterPaymentNotificationRequest) (*breez.RegisterPaymentNotificationResponse, error)
- func (s *Server) RemovePaymentNotification(ctx context.Context, in *breez.RemovePaymentNotificationRequest) (*breez.RemovePaymentNotificationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { breez.UnimplementedChannelOpenerServer breez.UnimplementedPaymentNotifierServer DBLSPList func(keys []string) ([]string, error) DBLSPFullList func(keys []string) ([]string, []string, error) }
Server implements lsp grpc functions
func (*Server) CheckChannels ¶
func (s *Server) CheckChannels(ctx context.Context, in *breez.CheckChannelsRequest) (*breez.CheckChannelsReply, error)
CheckChannels call lspd function CheckChannels
func (*Server) LSPFullList ¶
func (s *Server) LSPFullList(ctx context.Context, in *breez.LSPFullListRequest) (*breez.LSPFullListReply, error)
LSPFullList returns the list of active and historical (inactive) lsps
func (*Server) LSPList ¶
func (s *Server) LSPList(ctx context.Context, in *breez.LSPListRequest) (*breez.LSPListReply, error)
LSPList returns the list of active lsps
func (*Server) RegisterPayment ¶
func (s *Server) RegisterPayment(ctx context.Context, in *breez.RegisterPaymentRequest) (*breez.RegisterPaymentReply, error)
RegisterPayment sends information concerning a payment used by the LSP to open a channel
func (*Server) RegisterPaymentNotification ¶
func (s *Server) RegisterPaymentNotification( ctx context.Context, in *breez.RegisterPaymentNotificationRequest, ) (*breez.RegisterPaymentNotificationResponse, error)
func (*Server) RemovePaymentNotification ¶
func (s *Server) RemovePaymentNotification( ctx context.Context, in *breez.RemovePaymentNotificationRequest, ) (*breez.RemovePaymentNotificationResponse, error)
Click to show internal directories.
Click to hide internal directories.