Versions in this module Expand all Collapse all v0 v0.1.11 Jan 19, 2023 v0.1.10 Jan 19, 2023 Changes in this version type Payments + Sessions Sessions type Session + ID nonce.ID v0.1.9 Jan 17, 2023 Changes in this version + type Circuit [5]*Session + type PaymentChan chan *payment.Payment + type Payments struct + func NewPayments() *Payments + func (n *Payments) AddPendingPayment(np *payment.Payment) + func (n *Payments) AddSession(s *Session) + func (n *Payments) DeletePendingPayment(preimage sha256.Hash) + func (n *Payments) DeleteSession(id nonce.ID) + func (n *Payments) FindPendingPayment(id nonce.ID) (pp *payment.Payment) + func (n *Payments) FindPendingPreimage(pi sha256.Hash) (pp *payment.Payment) + func (n *Payments) FindSession(id nonce.ID) *Session + func (n *Payments) GetSessionByIndex(i int) (s *Session) + func (n *Payments) GetSessionsAtHop(hop byte) (s Sessions) + func (n *Payments) IterateSessions(fn func(s *Session) bool) + type PendingPayments []*payment.Payment + func (p PendingPayments) Add(np *payment.Payment) (pp PendingPayments) + func (p PendingPayments) Delete(preimage sha256.Hash) (pp PendingPayments) + func (p PendingPayments) Find(id nonce.ID) (pp *payment.Payment) + func (p PendingPayments) FindPreimage(pi sha256.Hash) (pp *payment.Payment) + type Session struct + HeaderBytes pub.Bytes + HeaderPrv *prv.Key + HeaderPub *pub.Key + Hop byte + PayloadBytes pub.Bytes + PayloadPrv *prv.Key + PayloadPub *pub.Key + Preimage sha256.Hash + Remaining lnwire.MilliSatoshi + func NewSession(id nonce.ID, node *identity.Peer, rem lnwire.MilliSatoshi, hdrPrv *prv.Key, ...) (s *Session) + func (s *Session) AddBytes(b lnwire.MilliSatoshi) + func (s *Session) SubtractBytes(b lnwire.MilliSatoshi) bool + type Sessions []*Session