Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockRedisStorage
- func (m *MockRedisStorage) CreateSession(ctx context.Context, session *types.Session, expire int) (string, error)
- func (m *MockRedisStorage) DeleteSession(ctx context.Context, refreshToken string) error
- func (m *MockRedisStorage) EXPECT() *MockRedisStorageMockRecorder
- func (m *MockRedisStorage) GetUserID(ctx context.Context, refreshToken string) (uuid.UUID, error)
- type MockRedisStorageMockRecorder
- type MockStorage
- func (m *MockStorage) CreateAccount(ctx context.Context, reqAcc *types.RequestCreate) (*types.Account, error)
- func (m *MockStorage) DeleteAccount(ctx context.Context, id uuid.UUID) error
- func (m *MockStorage) DepositAccount(ctx context.Context, reqDep *types.RequestDeposit) (*types.Account, error)
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) GetAccount(ctx context.Context) ([]*types.Account, error)
- func (m *MockStorage) GetAccountByCard(ctx context.Context, card string) (*types.Account, error)
- func (m *MockStorage) GetAccountByID(ctx context.Context, id uuid.UUID) (*types.Account, error)
- func (m *MockStorage) GetAccountStatement(ctx context.Context, id uuid.UUID) ([]string, error)
- func (m *MockStorage) GetPaymentByID(ctx context.Context, id uuid.UUID) (*types.Payment, error)
- func (m *MockStorage) SaveBalance(ctx context.Context, tx *sql.Tx, account *types.Account, ...) (*types.Account, error)
- func (m *MockStorage) SavePayment(ctx context.Context, tx *sql.Tx, payment *types.Payment) (*types.Payment, error)
- func (m *MockStorage) UpdateAccount(ctx context.Context, reqUp *types.RequestUpdate, id uuid.UUID) (*types.Account, error)
- func (m *MockStorage) UpdateStatement(ctx context.Context, tx *sql.Tx, id, paymentId uuid.UUID) (*types.Account, error)
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) CreateAccount(ctx, reqAcc interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) DeleteAccount(ctx, id interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) DepositAccount(ctx, reqDep interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetAccount(ctx interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetAccountByCard(ctx, card interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetAccountByID(ctx, id interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetAccountStatement(ctx, id interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetPaymentByID(ctx, id interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveBalance(ctx, tx, account, balance, bmoney interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) SavePayment(ctx, tx, payment interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) UpdateAccount(ctx, reqUp, id interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) UpdateStatement(ctx, tx, id, paymentId interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRedisStorage ¶
type MockRedisStorage struct {
// contains filtered or unexported fields
}
MockRedisStorage is a mock of RedisStorage interface.
func NewMockRedisStorage ¶
func NewMockRedisStorage(ctrl *gomock.Controller) *MockRedisStorage
NewMockRedisStorage creates a new mock instance.
func (*MockRedisStorage) CreateSession ¶
func (m *MockRedisStorage) CreateSession(ctx context.Context, session *types.Session, expire int) (string, error)
CreateSession mocks base method.
func (*MockRedisStorage) DeleteSession ¶
func (m *MockRedisStorage) DeleteSession(ctx context.Context, refreshToken string) error
DeleteSession mocks base method.
func (*MockRedisStorage) EXPECT ¶
func (m *MockRedisStorage) EXPECT() *MockRedisStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRedisStorageMockRecorder ¶
type MockRedisStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisStorageMockRecorder is the mock recorder for MockRedisStorage.
func (*MockRedisStorageMockRecorder) CreateSession ¶
func (mr *MockRedisStorageMockRecorder) CreateSession(ctx, session, expire interface{}) *gomock.Call
CreateSession indicates an expected call of CreateSession.
func (*MockRedisStorageMockRecorder) DeleteSession ¶
func (mr *MockRedisStorageMockRecorder) DeleteSession(ctx, refreshToken interface{}) *gomock.Call
DeleteSession indicates an expected call of DeleteSession.
func (*MockRedisStorageMockRecorder) GetUserID ¶
func (mr *MockRedisStorageMockRecorder) GetUserID(ctx, refreshToken interface{}) *gomock.Call
GetUserID indicates an expected call of GetUserID.
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) CreateAccount ¶
func (m *MockStorage) CreateAccount(ctx context.Context, reqAcc *types.RequestCreate) (*types.Account, error)
CreateAccount mocks base method.
func (*MockStorage) DeleteAccount ¶
DeleteAccount mocks base method.
func (*MockStorage) DepositAccount ¶
func (m *MockStorage) DepositAccount(ctx context.Context, reqDep *types.RequestDeposit) (*types.Account, error)
DepositAccount mocks base method.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) GetAccount ¶
GetAccount mocks base method.
func (*MockStorage) GetAccountByCard ¶
GetAccountByCard mocks base method.
func (*MockStorage) GetAccountByID ¶
GetAccountByID mocks base method.
func (*MockStorage) GetAccountStatement ¶
GetAccountStatement mocks base method.
func (*MockStorage) GetPaymentByID ¶
GetPaymentByID mocks base method.
func (*MockStorage) SaveBalance ¶
func (m *MockStorage) SaveBalance(ctx context.Context, tx *sql.Tx, account *types.Account, balance, bmoney uint64) (*types.Account, error)
SaveBalance mocks base method.
func (*MockStorage) SavePayment ¶
func (m *MockStorage) SavePayment(ctx context.Context, tx *sql.Tx, payment *types.Payment) (*types.Payment, error)
SavePayment mocks base method.
func (*MockStorage) UpdateAccount ¶
func (m *MockStorage) UpdateAccount(ctx context.Context, reqUp *types.RequestUpdate, id uuid.UUID) (*types.Account, error)
UpdateAccount mocks base method.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) CreateAccount ¶
func (mr *MockStorageMockRecorder) CreateAccount(ctx, reqAcc interface{}) *gomock.Call
CreateAccount indicates an expected call of CreateAccount.
func (*MockStorageMockRecorder) DeleteAccount ¶
func (mr *MockStorageMockRecorder) DeleteAccount(ctx, id interface{}) *gomock.Call
DeleteAccount indicates an expected call of DeleteAccount.
func (*MockStorageMockRecorder) DepositAccount ¶
func (mr *MockStorageMockRecorder) DepositAccount(ctx, reqDep interface{}) *gomock.Call
DepositAccount indicates an expected call of DepositAccount.
func (*MockStorageMockRecorder) GetAccount ¶
func (mr *MockStorageMockRecorder) GetAccount(ctx interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount.
func (*MockStorageMockRecorder) GetAccountByCard ¶
func (mr *MockStorageMockRecorder) GetAccountByCard(ctx, card interface{}) *gomock.Call
GetAccountByCard indicates an expected call of GetAccountByCard.
func (*MockStorageMockRecorder) GetAccountByID ¶
func (mr *MockStorageMockRecorder) GetAccountByID(ctx, id interface{}) *gomock.Call
GetAccountByID indicates an expected call of GetAccountByID.
func (*MockStorageMockRecorder) GetAccountStatement ¶
func (mr *MockStorageMockRecorder) GetAccountStatement(ctx, id interface{}) *gomock.Call
GetAccountStatement indicates an expected call of GetAccountStatement.
func (*MockStorageMockRecorder) GetPaymentByID ¶
func (mr *MockStorageMockRecorder) GetPaymentByID(ctx, id interface{}) *gomock.Call
GetPaymentByID indicates an expected call of GetPaymentByID.
func (*MockStorageMockRecorder) SaveBalance ¶
func (mr *MockStorageMockRecorder) SaveBalance(ctx, tx, account, balance, bmoney interface{}) *gomock.Call
SaveBalance indicates an expected call of SaveBalance.
func (*MockStorageMockRecorder) SavePayment ¶
func (mr *MockStorageMockRecorder) SavePayment(ctx, tx, payment interface{}) *gomock.Call
SavePayment indicates an expected call of SavePayment.
func (*MockStorageMockRecorder) UpdateAccount ¶
func (mr *MockStorageMockRecorder) UpdateAccount(ctx, reqUp, id interface{}) *gomock.Call
UpdateAccount indicates an expected call of UpdateAccount.
func (*MockStorageMockRecorder) UpdateStatement ¶
func (mr *MockStorageMockRecorder) UpdateStatement(ctx, tx, id, paymentId interface{}) *gomock.Call
UpdateStatement indicates an expected call of UpdateStatement.