payments

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chan

type Chan chan *Payment

func (Chan) Receive

func (pc Chan) Receive() <-chan *Payment

Receive waits on receiving a Payment on a Chan.

func (Chan) Send

func (pc Chan) Send(amount lnwire.MilliSatoshi,
	id nonce.ID, preimage sha256.Hash) (confirmChan chan bool)

Send a payment on the Chan.

type Payment

type Payment struct {
	ID          nonce.ID
	Preimage    sha256.Hash
	Amount      lnwire.MilliSatoshi
	ConfirmChan chan bool
}

type PendingPayments

type PendingPayments []*Payment

func (PendingPayments) Add

func (p PendingPayments) Add(np *Payment) (pp PendingPayments)

func (PendingPayments) Delete

func (p PendingPayments) Delete(preimage sha256.Hash) (pp PendingPayments)

func (PendingPayments) Find

func (p PendingPayments) Find(id nonce.ID) (pp *Payment)

func (PendingPayments) FindPreimage

func (p PendingPayments) FindPreimage(pi sha256.Hash) (pp *Payment)

Jump to

Keyboard shortcuts

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