Versions in this module Expand all Collapse all v0 v0.5.1 Nov 28, 2022 Changes in this version + const UserEnterDallePrompt + const UserEnterShopTitle + const UserEnterShopsDescription + const UserStateShopItemSendDescription + const UserStateShopItemSendItemFile + const UserStateShopItemSendPhoto + const UserStateShopItemSendPrice + const UserStateShopItemSendTitle type Client + func (c Client) Payment(w Wallet, payment_hash string) (payment LNbitsPayment, err error) + func (c Client) Payments(w Wallet) (wtx Payments, err error) type Error + Detail string + type Invoice struct + PaymentHash string + PaymentRequest string type InvoiceParams + UnhashedDescription string + type LNbitsPayment struct + Details Payment + Paid bool + Preimage string + type NodeSettings struct + LNDParams *satdress.LNDParams + LNbitsParams *satdress.LNBitsParams + NodeType string + type Payment struct + Amount int64 + Bolt11 string + CheckingID string + Extra struct{} + Fee int64 + Memo string + PaymentHash string + Pending bool + Preimage string + Time int + WalletID string + Webhook interface{} + WebhookStatus interface{} + type Payments []Payment + type Settings struct + ID string + Node NodeSettings type User + AnonIDSha256 string + Banned bool + Settings *Settings + UUID string + func (u User) LinkingKey(domain string) (*btcec.PrivateKey, *btcec.PublicKey) + func (u User) SignKeyAuth(domain string, k1hex string) (key string, sig string, err error) v0.4.2 Dec 6, 2021 Changes in this version + const UserEnterUser + const UserHasEnteredUser v0.4.1 Nov 15, 2021 Changes in this version + const UserEnterAmount + const UserHasEnteredAmount type User + AnonID string + CreatedAt time.Time + UpdatedAt time.Time type Wallet + func (w Wallet) Invoice(params InvoiceParams, c *Client) (lntx BitInvoice, err error) + func (w Wallet) Pay(params PaymentParams, c *Client) (wtx BitInvoice, err error) v0.3.2 Aug 31, 2021 Changes in this version + const UserStateConfirmLNURLPay + const UserStateLNURLEnterAmount v0.3.1 Aug 30, 2021 Changes in this version type InvoiceParams + DescriptionHash string v0.1.2 Aug 24, 2021 Changes in this version + const UserStateConfirmPayment + const UserStateConfirmSend + type BitInvoice struct + PaymentHash string + PaymentRequest string + type Client struct + AdminKey string + InvoiceKey string + func NewClient(key, url string) *Client + func (c *Client) CreateUserWithInitialWallet(userName, walletName, adminId string, email string) (wal User, err error) + func (c *Client) CreateWallet(userId, walletName, adminId string) (wal Wallet, err error) + func (c *Client) GetUser(userId string) (user User, err error) + func (c Client) Info(w Wallet) (wtx Wallet, err error) + func (c Client) Invoice(params InvoiceParams, w Wallet) (lntx BitInvoice, err error) + func (c Client) Pay(params PaymentParams, w Wallet) (wtx BitInvoice, err error) + func (c Client) Wallets(w User) (wtx []Wallet, err error) + type Error struct + Code int + Message string + Name string + Status int + func (err Error) Error() string + type InvoiceParams struct + Amount int64 + Memo string + Out bool + Webhook string + type PayParams struct + PassThru map[string]interface{} + PaymentRequest string + type PaymentParams struct + Bolt11 string + Out bool + type TransferParams struct + DestWalletId string + Memo string + NumSatoshis int64 + type User struct + ID string + Initialized bool + Name string + StateData string + StateKey UserStateKey + Telegram *tb.User + Wallet *Wallet + func (u *User) ResetState() + type UserStateKey int + type Wallet struct + Adminkey string + Balance int64 + ID string + Inkey string + Name string + User string + type Webhook struct + Amount int + Bolt11 string + CheckingID string + Extra struct{} + Fee int + Memo string + PaymentHash string + Pending int + Preimage string + Time int + WalletID string + Webhook string + WebhookStatus interface{} + type WebhookServer struct + func NewWebhook(webhookServer string, bot *tb.Bot, client *Client, database *gorm.DB) *WebhookServer + func (w *WebhookServer) GetUserByWalletId(walletId string) (*User, error) v0.0.1 Aug 16, 2021