Documentation ¶
Index ¶
- Constants
- func NewAlbyOAuthService(db *gorm.DB, cfg config.Config, keys keys.Keys, ...) *albyOAuthService
- type AlbyBalance
- type AlbyBalanceResponse
- type AlbyLinkAccountRequest
- type AlbyMe
- type AlbyMeHub
- type AlbyOAuthService
- type AlbyPayRequest
- type AutoChannelRequest
- type AutoChannelResponse
- type ChannelPeerSuggestion
- type ErrorResponse
Constants ¶
View Source
const ALBY_ACCOUNT_APP_NAME = "getalby.com"
Variables ¶
This section is empty.
Functions ¶
func NewAlbyOAuthService ¶
Types ¶
type AlbyBalance ¶
type AlbyBalanceResponse ¶
type AlbyBalanceResponse struct {
Sats int64 `json:"sats"`
}
type AlbyLinkAccountRequest ¶ added in v1.1.0
type AlbyMe ¶
type AlbyMe struct { Identifier string `json:"identifier"` NPub string `json:"nostr_pubkey"` LightningAddress string `json:"lightning_address"` Email string `json:"email"` Name string `json:"name"` Avatar string `json:"avatar"` KeysendPubkey string `json:"keysend_pubkey"` Hub AlbyMeHub `json:"hub"` }
type AlbyMeHub ¶ added in v1.1.0
type AlbyMeHub struct {
LatestVersion string `json:"latest_version"`
}
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, budget uint64, renewal string) error CallbackHandler(ctx context.Context, code string, lnClient lnclient.LNClient) error GetBalance(ctx context.Context) (*AlbyBalance, error) GetMe(ctx context.Context) (*AlbyMe, error) SendPayment(ctx context.Context, invoice string) error UnlinkAccount(ctx context.Context) error RequestAutoChannel(ctx context.Context, lnClient lnclient.LNClient, isPublic bool) (*AutoChannelResponse, error) }
type AlbyPayRequest ¶
type AlbyPayRequest struct {
Invoice string `json:"invoice"`
}
type AutoChannelRequest ¶ added in v1.3.0
type AutoChannelRequest struct {
IsPublic bool `json:"isPublic"`
}
type AutoChannelResponse ¶ added in v1.3.0
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.