postgres

package
v0.0.0-...-9b7003c Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WalletStore

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

func (WalletStore) AddCreditEntry

func (s WalletStore) AddCreditEntry(ctx context.Context, entry domain.CreditEntry) error

func (WalletStore) AddDebitEntry

func (s WalletStore) AddDebitEntry(ctx context.Context, entry domain.DebitEntry) error

func (WalletStore) Commit

func (s WalletStore) Commit(ctx context.Context) error

func (WalletStore) GetBalance

func (s WalletStore) GetBalance(ctx context.Context, walletID int) (*domain.WalletBalance, error)

func (WalletStore) Rollback

func (s WalletStore) Rollback(ctx context.Context) error

func (WalletStore) SaveBalance

func (s WalletStore) SaveBalance(ctx context.Context, balance *domain.WalletBalance) error

type WalletStoreTxFactory

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

func NewWalletStoreTxFactory

func NewWalletStoreTxFactory(db *pgxpool.Pool) *WalletStoreTxFactory

func (WalletStoreTxFactory) NewTx

Jump to

Keyboard shortcuts

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