postgres

package
v0.0.0-...-540f87c Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionsRepository

type TransactionsRepository struct {
	DB *sql.DB
}

func (*TransactionsRepository) Close

func (repository *TransactionsRepository) Close()

func (*TransactionsRepository) DepositMoney

func (repository *TransactionsRepository) DepositMoney(request *input.Deposit) error

func (*TransactionsRepository) GetTransactionsByAccount

func (repository *TransactionsRepository) GetTransactionsByAccount(accountID uint32) ([]*entity.Transaction, error)

func (*TransactionsRepository) HasConnection

func (repository *TransactionsRepository) HasConnection() bool

func (*TransactionsRepository) TransferMoney

func (repository *TransactionsRepository) TransferMoney(request *input.Transfer) error

func (*TransactionsRepository) WithdrawMoney

func (repository *TransactionsRepository) WithdrawMoney(request *input.Withdraw) error

Jump to

Keyboard shortcuts

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