Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Id int User users.User AccountNumber string AccountTransactions []AccountTransaction //validate nil // contains filtered or unexported fields }
func (Account) CalculateCurrentBalance ¶
func (Account) GetAvgCreditAmmount ¶
func (Account) GetAvgDebitAmmount ¶
type AccountRepository ¶
type AccountRepository interface { Save([]AccountTransaction) error GetAccountInfo(string) (Account, error) }
type AccountService ¶
type AccountService struct {
// contains filtered or unexported fields
}
func NewAccountService ¶
func NewAccountService(repository AccountRepository) AccountService
func (*AccountService) GetAccountInfo ¶
func (service *AccountService) GetAccountInfo(accountNumber string) (Account, error)
func (*AccountService) Save ¶
func (service *AccountService) Save(transactions []AccountTransaction) error
Click to show internal directories.
Click to hide internal directories.