Documentation ¶
Index ¶
- type ExchangeRepository
- type TransactionRepository
- type TransactionUseCase
- type UserRepository
- type UserUseCase
- type WalletRepository
- func (_m *WalletRepository) Get(ctx context.Context, id int64) (entity.Wallet, error)
- func (_m *WalletRepository) GetWalletsByUser(ctx context.Context, id int64) ([]entity.Wallet, error)
- func (_m *WalletRepository) Store(ctx context.Context, w entity.Wallet) error
- func (_m *WalletRepository) Update(ctx context.Context, w entity.Wallet) error
- type WalletUseCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExchangeRepository ¶
ExchangeRepository is an autogenerated mock type for the ExchangeRepository type
func NewExchangeRepository ¶
func NewExchangeRepository(t mockConstructorTestingTNewExchangeRepository) *ExchangeRepository
NewExchangeRepository creates a new instance of ExchangeRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExchangeRepository) GetByCurrency ¶
func (_m *ExchangeRepository) GetByCurrency(ctx context.Context, currency string) (entity.Exchange, error)
GetByCurrency provides a mock function with given fields: ctx, currency
type TransactionRepository ¶
TransactionRepository is an autogenerated mock type for the TransactionRepository type
func NewTransactionRepository ¶
func NewTransactionRepository(t mockConstructorTestingTNewTransactionRepository) *TransactionRepository
NewTransactionRepository creates a new instance of TransactionRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TransactionRepository) GetHistory ¶
func (_m *TransactionRepository) GetHistory(ctx context.Context) ([]entity.Transaction, error)
GetHistory provides a mock function with given fields: ctx
func (*TransactionRepository) Store ¶
func (_m *TransactionRepository) Store(ctx context.Context, t entity.Transaction) error
Store provides a mock function with given fields: ctx, t
type TransactionUseCase ¶
TransactionUseCase is an autogenerated mock type for the TransactionUseCase type
func NewTransactionUseCase ¶
func NewTransactionUseCase(t mockConstructorTestingTNewTransactionUseCase) *TransactionUseCase
NewTransactionUseCase creates a new instance of TransactionUseCase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TransactionUseCase) History ¶
func (_m *TransactionUseCase) History(ctx context.Context) ([]entity.Transaction, error)
History provides a mock function with given fields: ctx
func (*TransactionUseCase) Post ¶
func (_m *TransactionUseCase) Post(ctx context.Context, t entity.Transaction) error
Post provides a mock function with given fields: ctx, t
type UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func NewUserRepository ¶
func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository
NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type UserUseCase ¶
UserUseCase is an autogenerated mock type for the UserUseCase type
func NewUserUseCase ¶
func NewUserUseCase(t mockConstructorTestingTNewUserUseCase) *UserUseCase
NewUserUseCase creates a new instance of UserUseCase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type WalletRepository ¶
WalletRepository is an autogenerated mock type for the WalletRepository type
func NewWalletRepository ¶
func NewWalletRepository(t mockConstructorTestingTNewWalletRepository) *WalletRepository
NewWalletRepository creates a new instance of WalletRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*WalletRepository) GetWalletsByUser ¶
func (_m *WalletRepository) GetWalletsByUser(ctx context.Context, id int64) ([]entity.Wallet, error)
GetWalletsByUser provides a mock function with given fields: ctx, id
type WalletUseCase ¶
WalletUseCase is an autogenerated mock type for the WalletUseCase type
func NewWalletUseCase ¶
func NewWalletUseCase(t mockConstructorTestingTNewWalletUseCase) *WalletUseCase
NewWalletUseCase creates a new instance of WalletUseCase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*WalletUseCase) GetWalletsByUser ¶
GetWalletsByUser provides a mock function with given fields: ctx, id