Documentation ¶
Index ¶
- type App
- func (a *App) BackupFiles() (string, error)
- func (a *App) CheckLSPClosedChannelMismatch(r *data.CheckLSPClosedChannelMismatchRequest) (*data.CheckLSPClosedChannelMismatchResponse, error)
- func (a *App) CheckVersion() error
- func (a *App) ClosedChannels() (int, error)
- func (a *App) DaemonReady() bool
- func (a *App) DeleteGraph() error
- func (a *App) GetLogPath() string
- func (a *App) GetPeers() (peers []string, isDefault bool, err error)
- func (a *App) GetTorActive() bool
- func (a *App) GetTxSpentURL() (txSpentURL string, isDefault bool, err error)
- func (a *App) GetWorkingDir() string
- func (a *App) GraphUrl() (string, error)
- func (a *App) LastSyncedHeaderTimestamp() (int64, error)
- func (a *App) LatestBackupTime() (time.Time, error)
- func (a *App) NotificationChan() chan data.NotificationEvent
- func (a *App) OnResume()
- func (a *App) PopulateChannelPolicy()
- func (a *App) RequestBackup()
- func (a *App) ResetClosedChannelChainInfo(r *data.ResetClosedChannelChainInfoRequest) (*data.ResetClosedChannelChainInfoReply, error)
- func (a *App) RestartDaemon() error
- func (a *App) Restore(nodeID string, key []byte) error
- func (a *App) SendCommand(command string) (string, error)
- func (a *App) SetPeers(peers []string) error
- func (a *App) SetTorActive(enable bool) error
- func (a *App) SetTxSpentURL(txSpentURL string) error
- func (a *App) Start(torConfig *data.TorConfig) error
- func (a *App) Stop() error
- func (a *App) TestPeer(peer string) error
- type AppServices
- type AuthService
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { //exposed sub services AccountService *account.Service BackupManager *backup.Manager SwapService *swapfunds.Service ServicesClient *services.Client // contains filtered or unexported fields }
App represents the breez application
func NewApp ¶
func NewApp(workingDir string, applicationServices AppServices, startBeforeSync bool) (*App, error)
NewApp create a new application
func (*App) BackupFiles ¶
func (*App) CheckLSPClosedChannelMismatch ¶
func (a *App) CheckLSPClosedChannelMismatch( r *data.CheckLSPClosedChannelMismatchRequest) ( *data.CheckLSPClosedChannelMismatchResponse, error)
func (*App) CheckVersion ¶
func (*App) ClosedChannels ¶
func (*App) DaemonReady ¶
DaemonReady return the status of the lightningLib daemon
func (*App) DeleteGraph ¶
func (*App) GetTorActive ¶
func (*App) GetTxSpentURL ¶
func (*App) GetWorkingDir ¶
GetWorkingDir returns the working dir.
func (*App) LastSyncedHeaderTimestamp ¶
func (*App) NotificationChan ¶
func (a *App) NotificationChan() chan data.NotificationEvent
NotificationChan returns a channel that receives notification events
func (*App) OnResume ¶
func (a *App) OnResume()
OnResume recalculate things we might missed when we were idle.
func (*App) PopulateChannelPolicy ¶
func (a *App) PopulateChannelPolicy()
func (*App) RequestBackup ¶
func (a *App) RequestBackup()
func (*App) ResetClosedChannelChainInfo ¶
func (a *App) ResetClosedChannelChainInfo(r *data.ResetClosedChannelChainInfoRequest) ( *data.ResetClosedChannelChainInfoReply, error)
func (*App) RestartDaemon ¶
func (*App) Restore ¶
Restore is the breez API for restoring a specific nodeID using the configured backup backend provider.
func (*App) SetTorActive ¶
func (*App) SetTxSpentURL ¶
type AppServices ¶
AppServices defined the interface needed in Breez library in order to functional right.
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
AuthService is a Specific implementation for backup.Manager
func (*AuthService) SignIn ¶
func (a *AuthService) SignIn() (string, error)
SignIn is the interface function implementation needed for backup.Manager
Click to show internal directories.
Click to hide internal directories.