Documentation
¶
Index ¶
Constants ¶
View Source
const ( BoostagramTlvType = 7629169 WhatsatTlvType = 34349334 CustomKeyTlvType = 696969 )
Variables ¶
This section is empty.
Functions ¶
func NewInsufficientBalanceError ¶
func NewInsufficientBalanceError() error
func NewNotFoundError ¶
func NewNotFoundError() error
func NewQuotaExceededError ¶
func NewQuotaExceededError() error
func NewTransactionsService ¶
Types ¶
type Boostagram ¶ added in v1.5.0
type Boostagram struct { AppName string `json:"app_name"` Name string `json:"name"` Podcast string `json:"podcast"` URL string `json:"url"` Episode string `json:"episode,omitempty"` FeedId string `json:"feedID,omitempty"` ItemId string `json:"itemID,omitempty"` Timestamp int64 `json:"ts,omitempty"` Message string `json:"message,omitempty"` SenderId string `json:"sender_id"` SenderName string `json:"sender_name"` Time string `json:"time"` Action string `json:"action"` ValueMsatTotal int64 `json:"value_msat_total"` }
type Transaction ¶
type Transaction = db.Transaction
type TransactionsService ¶
type TransactionsService interface { events.EventSubscriber MakeInvoice(ctx context.Context, amount int64, description string, descriptionHash string, expiry int64, metadata map[string]interface{}, lnClient lnclient.LNClient, appId *uint, requestEventId *uint) (*Transaction, error) LookupTransaction(ctx context.Context, paymentHash string, transactionType *string, lnClient lnclient.LNClient, appId *uint) (*Transaction, error) ListTransactions(ctx context.Context, from, until, limit, offset uint64, unpaid bool, transactionType *string, lnClient lnclient.LNClient, appId *uint) (transactions []Transaction, err error) SendPaymentSync(ctx context.Context, payReq string, lnClient lnclient.LNClient, appId *uint, requestEventId *uint) (*Transaction, error) SendKeysend(ctx context.Context, amount uint64, destination string, customRecords []lnclient.TLVRecord, preimage string, lnClient lnclient.LNClient, appId *uint, requestEventId *uint) (*Transaction, error) }
Click to show internal directories.
Click to hide internal directories.