Documentation ¶
Index ¶
- type Auth
- type Config
- type Ctxinfo
- type Usecase
- func (_m *Usecase) AddOrder(ctx context.Context, order entity.Order, user entity.User) error
- func (_m *Usecase) GetAllOrders(ctx context.Context, user entity.User) ([]entity.Order, error)
- func (_m *Usecase) GetBalance(ctx context.Context, user entity.User) (entity.Balance, error)
- func (_m *Usecase) GetUser(ctx context.Context, userFromReq entity.User) (entity.User, error)
- func (_m *Usecase) UserLogin(ctx context.Context, user entity.User) error
- func (_m *Usecase) UserRegister(ctx context.Context, user entity.User) (int64, error)
- func (_m *Usecase) WithdrawBalance(ctx context.Context, balance entity.BalanceUpdate, user entity.User) error
- func (_m *Usecase) 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 Auth ¶
Auth is an autogenerated mock type for the auth type
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) GetTokenLifeTime ¶
GetTokenLifeTime provides a mock function with given fields:
func (*Config) GetTokenName ¶
GetTokenName provides a mock function with given fields:
type Ctxinfo ¶
Ctxinfo is an autogenerated mock type for the ctxinfo type
func NewCtxinfo ¶
NewCtxinfo creates a new instance of Ctxinfo. 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.
type Usecase ¶
Usecase is an autogenerated mock type for the usecase type
func NewUsecase ¶
NewUsecase creates a new instance of Usecase. 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 (*Usecase) GetAllOrders ¶
GetAllOrders provides a mock function with given fields: ctx, user
func (*Usecase) GetBalance ¶
GetBalance provides a mock function with given fields: ctx, user
func (*Usecase) UserRegister ¶
UserRegister provides a mock function with given fields: ctx, user
func (*Usecase) WithdrawBalance ¶
func (_m *Usecase) WithdrawBalance(ctx context.Context, balance entity.BalanceUpdate, user entity.User) error
WithdrawBalance provides a mock function with given fields: ctx, balance, user
func (*Usecase) Withdrawals ¶
func (_m *Usecase) Withdrawals(ctx context.Context, user entity.User) ([]entity.BalanceUpdate, error)
Withdrawals provides a mock function with given fields: ctx, user