memory

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Transactions = map[uint32]*data.Transaction{}

Functions

This section is empty.

Types

type TransactionsRepository

type TransactionsRepository struct {
	Transactions           map[uint32]*data.Transaction
	TransactionsSequenceID uint32
}

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) InitSequenceID

func (repository *TransactionsRepository) InitSequenceID()

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