Documentation ¶
Index ¶
- func NewRepoManager(baseDbDir string, logger badger.Logger) (ports.RepoManager, error)
- func NewTransactionRepository(store *badgerhold.Store) domain.TransactionRepository
- func NewUtxoRepository(store *badgerhold.Store) domain.UtxoRepository
- func NewWalletRepository(store *badgerhold.Store) domain.WalletRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepoManager ¶
func NewRepoManager(baseDbDir string, logger badger.Logger) (ports.RepoManager, error)
NewRepoManager is the factory for creating a new badger implementation of the ports.RepoManager interface. It takes care of creating the db files on disk (or in-memory if no baseDbDir is provided - to be used only for testing purposes), and opening and closing the connection to them.
func NewTransactionRepository ¶
func NewTransactionRepository( store *badgerhold.Store, ) domain.TransactionRepository
func NewUtxoRepository ¶
func NewUtxoRepository(store *badgerhold.Store) domain.UtxoRepository
func NewWalletRepository ¶
func NewWalletRepository(store *badgerhold.Store) domain.WalletRepository
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.