Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWalletUsecase ¶
func NewWalletUsecase(repo domain.WalletRepository) domain.WalletUsecase
Types ¶
type MockWalletUsecase ¶
func (*MockWalletUsecase) GetBalance ¶
func (m *MockWalletUsecase) GetBalance(walletId string) (uint64, error)
func (*MockWalletUsecase) TopUp ¶
func (m *MockWalletUsecase) TopUp(walletId string, amount uint32) (domain.Transaction, error)
func (*MockWalletUsecase) Transfer ¶
func (m *MockWalletUsecase) Transfer(senderId string, receiverId string, notes string, amount uint32) (domain.Transaction, error)
Click to show internal directories.
Click to hide internal directories.