Versions in this module Expand all Collapse all v1 v1.1.0 Aug 6, 2018 Changes in this version + type Account struct + Balance int + UserID int64 + func (a *Account) Deposit(amount int) + func (a *Account) Withdraw(amount int) error + type AccountRepository interface + ByID func(context.Context, int64) (*Account, error) + Save func(context.Context, *Account) error + type AccountService struct + func NewAccountService(accRepo AccountRepository) *AccountService + func (svc *AccountService) TransferMoney(ctx context.Context, req *TransferReq) error + type TransferReq struct + Amount int + DestID int64 + SrcID int64