Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotEnoughMoney = errors.New("you don't have enough money") ErrDifferentCurrency = errors.New("receiver has a different currency") )
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
type AccountRepository interface { Add(account *Account, tx transactions.ITransaction) error Get() ([]*Account, error) GetWithLock(id AccountID, tx transactions.ITransaction) (*Account, error) Update(account *Account, tx transactions.ITransaction) error }
AccountRepository provides access to account.
type PaymentRepository ¶
type PaymentRepository interface { Add(payment *Payment, tx transactions.ITransaction) error Get() ([]*Payment, error) }
PaymentRepository provides access to payments.
Directories ¶
Path | Synopsis |
---|---|
Package account provides the use-case of users accounts and it manipulations.
|
Package account provides the use-case of users accounts and it manipulations. |
cmd
|
|
implementation
|
|
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Package payments provides the use-case of history of accounts payments.
|
Package payments provides the use-case of history of accounts payments. |
pkg
|
|
transactions/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.