transactions

package
v1.11.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

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

func NewTransactionsService(db *gorm.DB, eventPublisher events.EventPublisher) *transactionsService

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        StringOrNumber `json:"episode,omitempty"`
	FeedId         StringOrNumber `json:"feedID,omitempty"`
	ItemId         StringOrNumber `json:"itemID,omitempty"`
	Timestamp      int64          `json:"ts,omitempty"`
	Message        string         `json:"message,omitempty"`
	SenderId       StringOrNumber `json:"sender_id"`
	SenderName     string         `json:"sender_name"`
	Time           string         `json:"time"`
	Action         string         `json:"action"`
	ValueMsatTotal int64          `json:"value_msat_total"`
}

type StringOrNumber added in v1.10.2

type StringOrNumber struct {
	StringData string
	NumberData int64
}

func (StringOrNumber) String added in v1.10.2

func (sn StringOrNumber) String() string

func (*StringOrNumber) UnmarshalJSON added in v1.10.2

func (sn *StringOrNumber) UnmarshalJSON(data []byte) error

type Transaction

type Transaction = db.Transaction

type TransactionsService

type TransactionsService interface {
	events.EventSubscriber
	MakeInvoice(ctx context.Context, amount uint64, description string, descriptionHash string, expiry uint64, 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, unpaidOutgoing bool, unpaidIncoming bool, transactionType *string, lnClient lnclient.LNClient, appId *uint, forceFilterByAppId bool) (transactions []Transaction, err error)
	SendPaymentSync(ctx context.Context, payReq string, metadata map[string]interface{}, 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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL