sqlite

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteDB

type SQLiteDB struct {
	// contains filtered or unexported fields
}

func InitSQLite

func InitSQLite(path, migrationPath string) (*SQLiteDB, error)

func (*SQLiteDB) GetBalance

func (sqlite *SQLiteDB) GetBalance() (uint64, error)

func (*SQLiteDB) GetKeysets

func (sqlite *SQLiteDB) GetKeysets() ([]storage.DBKeyset, error)

func (*SQLiteDB) GetMeltQuote

func (sqlite *SQLiteDB) GetMeltQuote(quoteId string) (*storage.MeltQuote, error)

func (*SQLiteDB) GetMintQuote

func (sqlite *SQLiteDB) GetMintQuote(quoteId string) (*storage.MintQuote, error)

func (*SQLiteDB) GetProofsUsed

func (sqlite *SQLiteDB) GetProofsUsed(Ys []string) ([]cashu.Proof, error)

func (*SQLiteDB) GetSeed

func (sqlite *SQLiteDB) GetSeed() ([]byte, error)

func (*SQLiteDB) SaveKeyset

func (sqlite *SQLiteDB) SaveKeyset(keyset storage.DBKeyset) error

func (*SQLiteDB) SaveMeltQuote

func (sqlite *SQLiteDB) SaveMeltQuote(meltQuote storage.MeltQuote) error

func (*SQLiteDB) SaveMintQuote

func (sqlite *SQLiteDB) SaveMintQuote(mintQuote storage.MintQuote) error

func (*SQLiteDB) SaveProofs

func (sqlite *SQLiteDB) SaveProofs(proofs cashu.Proofs) error

func (*SQLiteDB) SaveSeed

func (sqlite *SQLiteDB) SaveSeed(seed []byte) error

func (*SQLiteDB) UpdateKeysetActive

func (sqlite *SQLiteDB) UpdateKeysetActive(id string, active bool) error

func (*SQLiteDB) UpdateMeltQuote

func (sqlite *SQLiteDB) UpdateMeltQuote(quoteId, preimage string, state nut05.State) error

func (*SQLiteDB) UpdateMintQuoteState

func (sqlite *SQLiteDB) UpdateMintQuoteState(quoteId string, state nut04.State) error

Jump to

Keyboard shortcuts

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