Documentation ¶
Index ¶
- type Config
- type Storage
- func (_m *Storage) AddOrder(ctx context.Context, order entity.Order, user entity.User) error
- func (_m *Storage) GetAllOrders(ctx context.Context, user entity.User) ([]entity.Order, error)
- func (_m *Storage) GetBalance(ctx context.Context, user entity.User) (entity.Balance, error)
- func (_m *Storage) GetUser(ctx context.Context, userFromReq entity.User) (entity.User, error)
- func (_m *Storage) UserLogin(ctx context.Context, user entity.User) error
- func (_m *Storage) UserRegister(ctx context.Context, user entity.User) (int64, error)
- func (_m *Storage) WithdrawBalance(ctx context.Context, balance entity.BalanceUpdate, user entity.User) error
- func (_m *Storage) Withdrawals(ctx context.Context, user entity.User) ([]entity.BalanceUpdate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is an autogenerated mock type for the config type
func NewConfig ¶
NewConfig creates a new instance of Config. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Config) GetStorageSalt ¶
GetStorageSalt provides a mock function with given fields:
type Storage ¶
Storage is an autogenerated mock type for the storage type
func NewStorage ¶
NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Storage) GetAllOrders ¶
GetAllOrders provides a mock function with given fields: ctx, user
func (*Storage) GetBalance ¶
GetBalance provides a mock function with given fields: ctx, user
func (*Storage) UserRegister ¶
UserRegister provides a mock function with given fields: ctx, user
func (*Storage) WithdrawBalance ¶
func (_m *Storage) WithdrawBalance(ctx context.Context, balance entity.BalanceUpdate, user entity.User) error
WithdrawBalance provides a mock function with given fields: ctx, balance, user
func (*Storage) Withdrawals ¶
func (_m *Storage) Withdrawals(ctx context.Context, user entity.User) ([]entity.BalanceUpdate, error)
Withdrawals provides a mock function with given fields: ctx, user