Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAlbyOAuthService ¶
Types ¶
type AlbyBalance ¶
type AlbyBalanceResponse ¶
type AlbyBalanceResponse struct {
Sats int64 `json:"sats"`
}
type AlbyOAuthService ¶
type AlbyOAuthService interface {
events.EventSubscriber
GetChannelPeerSuggestions(ctx context.Context) ([]ChannelPeerSuggestion, error)
GetAuthUrl() string
GetUserIdentifier() (string, error)
IsConnected(ctx context.Context) bool
LinkAccount(ctx context.Context, lnClient lnclient.LNClient) error
CallbackHandler(ctx context.Context, code string) error
GetBalance(ctx context.Context) (*AlbyBalance, error)
GetMe(ctx context.Context) (*AlbyMe, error)
SendPayment(ctx context.Context, invoice string) error
}
type AlbyPayRequest ¶
type AlbyPayRequest struct {
Invoice string `json:"invoice"`
}
type ChannelPeerSuggestion ¶
type ChannelPeerSuggestion struct {
Network string `json:"network"`
PaymentMethod string `json:"paymentMethod"`
Pubkey string `json:"pubkey"`
Host string `json:"host"`
MinimumChannelSize uint64 `json:"minimumChannelSize"`
MaximumChannelSize uint64 `json:"maximumChannelSize"`
Name string `json:"name"`
Image string `json:"image"`
BrokenLspUrl string `json:"lsp_url"`
BrokenLspType string `json:"lsp_type"`
LspUrl string `json:"lspUrl"`
LspType string `json:"lspType"`
}
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.