services

package
v0.0.0-...-ddb1edc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

API is the interface for external breez services.

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Client represents the client interface to breez services

func NewClient

func NewClient(cfg *config.Config) (*Client, error)

NewClient creates a new client struct

func (*Client) LSPList

func (c *Client) LSPList() (*data.LSPList, error)

LSPList returns the list of the LSPs

func (*Client) NewChannelOpenerClient

func (c *Client) NewChannelOpenerClient() (breezservice.ChannelOpenerClient, context.Context, context.CancelFunc)

NewChannelOpenerClient creates a new SyncNotifierClient

func (*Client) NewFundManager

NewFundManager creates a new FundsManager

func (*Client) NewPushTxNotifierClient

func (c *Client) NewPushTxNotifierClient() (breezservice.PushTxNotifierClient, context.Context, context.CancelFunc)

NewPushTxNotifierClient creates a new PushTxNotifierClient

func (*Client) NewSwapper

NewSwapper creates a new Swapper

func (*Client) NewSyncNotifierClient

func (c *Client) NewSyncNotifierClient() (breezservice.SyncNotifierClient, context.Context, context.CancelFunc)

NewSyncNotifierClient creates a new SyncNotifierClient

func (*Client) Rates

func (c *Client) Rates() (*data.Rates, error)

Rates returns the rates obtained from the server

func (*Client) ReceiverNode

func (c *Client) ReceiverNode() (string, error)

func (*Client) Start

func (c *Client) Start() error

Start the client

func (*Client) Stop

func (c *Client) Stop() (err error)

func (*Client) Versions

func (c *Client) Versions() ([]string, error)

Versions returns the list of Breez app version authorized by the server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL