Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type Mockcache
- func (m *Mockcache) EXPECT() *MockcacheMockRecorder
- func (m *Mockcache) Get(ctx context.Context, key string) (string, bool, error)
- func (m *Mockcache) Set(ctx context.Context, key, value string, ttl time.Duration) error
- func (m *Mockcache) SetIfAbsent(ctx context.Context, key, value string, ttl time.Duration) (bool, error)
- type MockcacheMockRecorder
- type MockoutboxService
- type MockoutboxServiceMockRecorder
- type Mockrepository
- func (m *Mockrepository) AssignRoleToUser(ctx context.Context, userID int, role string) error
- func (m *Mockrepository) CreateUser(ctx context.Context, user *models.User) error
- func (m *Mockrepository) DeleteUser(ctx context.Context, user *models.User) error
- func (m *Mockrepository) EXPECT() *MockrepositoryMockRecorder
- func (m *Mockrepository) GetToken(ctx context.Context, hashedToken string) (*models.Token, error)
- func (m *Mockrepository) GetUserByEmail(ctx context.Context, email string) (*models.User, error)
- func (m *Mockrepository) GetUserByID(ctx context.Context, id int) (*models.User, error)
- func (m *Mockrepository) GetUserByUUID(ctx context.Context, uuid string) (*models.User, error)
- func (m *Mockrepository) ListUsers(ctx context.Context, limit, offset int) ([]*models.User, error)
- func (m *Mockrepository) UpdateUser(ctx context.Context, user *models.User) error
- func (m *Mockrepository) WithTransaction(ctx context.Context, fn func(context.Context) error) error
- type MockrepositoryMockRecorder
- func (mr *MockrepositoryMockRecorder) AssignRoleToUser(ctx, userID, role any) *gomock.Call
- func (mr *MockrepositoryMockRecorder) CreateUser(ctx, user any) *gomock.Call
- func (mr *MockrepositoryMockRecorder) DeleteUser(ctx, user any) *gomock.Call
- func (mr *MockrepositoryMockRecorder) GetToken(ctx, hashedToken any) *gomock.Call
- func (mr *MockrepositoryMockRecorder) GetUserByEmail(ctx, email any) *gomock.Call
- func (mr *MockrepositoryMockRecorder) GetUserByID(ctx, id any) *gomock.Call
- func (mr *MockrepositoryMockRecorder) GetUserByUUID(ctx, uuid any) *gomock.Call
- func (mr *MockrepositoryMockRecorder) ListUsers(ctx, limit, offset any) *gomock.Call
- func (mr *MockrepositoryMockRecorder) UpdateUser(ctx, user any) *gomock.Call
- func (mr *MockrepositoryMockRecorder) WithTransaction(ctx, fn any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mockcache ¶
type Mockcache struct {
// contains filtered or unexported fields
}
Mockcache is a mock of cache interface.
func NewMockcache ¶
func NewMockcache(ctrl *gomock.Controller) *Mockcache
NewMockcache creates a new mock instance.
func (*Mockcache) EXPECT ¶
func (m *Mockcache) EXPECT() *MockcacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockcacheMockRecorder ¶
type MockcacheMockRecorder struct {
// contains filtered or unexported fields
}
MockcacheMockRecorder is the mock recorder for Mockcache.
func (*MockcacheMockRecorder) Get ¶
func (mr *MockcacheMockRecorder) Get(ctx, key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockcacheMockRecorder) Set ¶
func (mr *MockcacheMockRecorder) Set(ctx, key, value, ttl any) *gomock.Call
Set indicates an expected call of Set.
func (*MockcacheMockRecorder) SetIfAbsent ¶
func (mr *MockcacheMockRecorder) SetIfAbsent(ctx, key, value, ttl any) *gomock.Call
SetIfAbsent indicates an expected call of SetIfAbsent.
type MockoutboxService ¶
type MockoutboxService struct {
// contains filtered or unexported fields
}
MockoutboxService is a mock of outboxService interface.
func NewMockoutboxService ¶
func NewMockoutboxService(ctrl *gomock.Controller) *MockoutboxService
NewMockoutboxService creates a new mock instance.
func (*MockoutboxService) EXPECT ¶
func (m *MockoutboxService) EXPECT() *MockoutboxServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockoutboxService) NewOutboxMessage ¶
func (m *MockoutboxService) NewOutboxMessage(ctx context.Context, topic string, msg *domain.Message) error
NewOutboxMessage mocks base method.
type MockoutboxServiceMockRecorder ¶
type MockoutboxServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockoutboxServiceMockRecorder is the mock recorder for MockoutboxService.
func (*MockoutboxServiceMockRecorder) NewOutboxMessage ¶
func (mr *MockoutboxServiceMockRecorder) NewOutboxMessage(ctx, topic, msg any) *gomock.Call
NewOutboxMessage indicates an expected call of NewOutboxMessage.
type Mockrepository ¶
type Mockrepository struct {
// contains filtered or unexported fields
}
Mockrepository is a mock of repository interface.
func NewMockrepository ¶
func NewMockrepository(ctrl *gomock.Controller) *Mockrepository
NewMockrepository creates a new mock instance.
func (*Mockrepository) AssignRoleToUser ¶
AssignRoleToUser mocks base method.
func (*Mockrepository) CreateUser ¶
CreateUser mocks base method.
func (*Mockrepository) DeleteUser ¶
DeleteUser mocks base method.
func (*Mockrepository) EXPECT ¶
func (m *Mockrepository) EXPECT() *MockrepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockrepository) GetUserByEmail ¶
GetUserByEmail mocks base method.
func (*Mockrepository) GetUserByID ¶
GetUserByID mocks base method.
func (*Mockrepository) GetUserByUUID ¶
GetUserByUUID mocks base method.
func (*Mockrepository) UpdateUser ¶
UpdateUser mocks base method.
func (*Mockrepository) WithTransaction ¶
WithTransaction mocks base method.
type MockrepositoryMockRecorder ¶
type MockrepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockrepositoryMockRecorder is the mock recorder for Mockrepository.
func (*MockrepositoryMockRecorder) AssignRoleToUser ¶
func (mr *MockrepositoryMockRecorder) AssignRoleToUser(ctx, userID, role any) *gomock.Call
AssignRoleToUser indicates an expected call of AssignRoleToUser.
func (*MockrepositoryMockRecorder) CreateUser ¶
func (mr *MockrepositoryMockRecorder) CreateUser(ctx, user any) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockrepositoryMockRecorder) DeleteUser ¶
func (mr *MockrepositoryMockRecorder) DeleteUser(ctx, user any) *gomock.Call
DeleteUser indicates an expected call of DeleteUser.
func (*MockrepositoryMockRecorder) GetToken ¶
func (mr *MockrepositoryMockRecorder) GetToken(ctx, hashedToken any) *gomock.Call
GetToken indicates an expected call of GetToken.
func (*MockrepositoryMockRecorder) GetUserByEmail ¶
func (mr *MockrepositoryMockRecorder) GetUserByEmail(ctx, email any) *gomock.Call
GetUserByEmail indicates an expected call of GetUserByEmail.
func (*MockrepositoryMockRecorder) GetUserByID ¶
func (mr *MockrepositoryMockRecorder) GetUserByID(ctx, id any) *gomock.Call
GetUserByID indicates an expected call of GetUserByID.
func (*MockrepositoryMockRecorder) GetUserByUUID ¶
func (mr *MockrepositoryMockRecorder) GetUserByUUID(ctx, uuid any) *gomock.Call
GetUserByUUID indicates an expected call of GetUserByUUID.
func (*MockrepositoryMockRecorder) ListUsers ¶
func (mr *MockrepositoryMockRecorder) ListUsers(ctx, limit, offset any) *gomock.Call
ListUsers indicates an expected call of ListUsers.
func (*MockrepositoryMockRecorder) UpdateUser ¶
func (mr *MockrepositoryMockRecorder) UpdateUser(ctx, user any) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.
func (*MockrepositoryMockRecorder) WithTransaction ¶
func (mr *MockrepositoryMockRecorder) WithTransaction(ctx, fn any) *gomock.Call
WithTransaction indicates an expected call of WithTransaction.