Documentation ¶
Index ¶
- type BoltDB
- func (db *BoltDB) DeleteProof(secret string) error
- func (db *BoltDB) GetInvoice(paymentHash string) *lightning.Invoice
- func (db *BoltDB) GetInvoices() []lightning.Invoice
- func (db *BoltDB) GetKeysets() crypto.KeysetsMap
- func (db *BoltDB) GetProofs() cashu.Proofs
- func (db *BoltDB) GetProofsByKeysetId(id string) cashu.Proofs
- func (db *BoltDB) SaveInvoice(invoice lightning.Invoice) error
- func (db *BoltDB) SaveKeyset(keyset *crypto.Keyset) error
- func (db *BoltDB) SaveProof(proof cashu.Proof) error
- type DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDB ¶
type BoltDB struct {
// contains filtered or unexported fields
}
func (*BoltDB) DeleteProof ¶
func (*BoltDB) GetInvoices ¶
func (*BoltDB) GetKeysets ¶
func (db *BoltDB) GetKeysets() crypto.KeysetsMap
type DB ¶
type DB interface { SaveProof(cashu.Proof) error GetProofsByKeysetId(string) cashu.Proofs GetProofs() cashu.Proofs DeleteProof(string) error SaveKeyset(*crypto.Keyset) error GetKeysets() crypto.KeysetsMap SaveInvoice(lightning.Invoice) error GetInvoice(string) *lightning.Invoice GetInvoices() []lightning.Invoice }
Click to show internal directories.
Click to hide internal directories.