dbbadger

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExternalScriptRepository added in v0.2.0

func NewExternalScriptRepository(
	store *badgerhold.Store,
) domain.ExternalScriptRepository

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.

Jump to

Keyboard shortcuts

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