Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockauthService
- type MockauthServiceMockRecorder
- type Mockrepository
- func (m *Mockrepository) EXPECT() *MockrepositoryMockRecorder
- func (m *Mockrepository) SaveUserHistoryRecord(ctx context.Context, record *models.UserHistoryRecord) error
- func (m *Mockrepository) UpdateTokenLastUsed(ctx context.Context, tokenID int, when time.Time) error
- func (m *Mockrepository) WithTransaction(ctx context.Context, fn func(context.Context) error) error
- type MockrepositoryMockRecorder
- type Mocksubscriber
- type MocksubscriberMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockauthService ¶
type MockauthService struct {
// contains filtered or unexported fields
}
MockauthService is a mock of authService interface.
func NewMockauthService ¶
func NewMockauthService(ctrl *gomock.Controller) *MockauthService
NewMockauthService creates a new mock instance.
func (*MockauthService) EXPECT ¶
func (m *MockauthService) EXPECT() *MockauthServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockauthService) RecentlyUsedTokensChan ¶
func (m *MockauthService) RecentlyUsedTokensChan() <-chan domain.TokenWasUsed
RecentlyUsedTokensChan mocks base method.
type MockauthServiceMockRecorder ¶
type MockauthServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockauthServiceMockRecorder is the mock recorder for MockauthService.
func (*MockauthServiceMockRecorder) RecentlyUsedTokensChan ¶
func (mr *MockauthServiceMockRecorder) RecentlyUsedTokensChan() *gomock.Call
RecentlyUsedTokensChan indicates an expected call of RecentlyUsedTokensChan.
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) EXPECT ¶
func (m *Mockrepository) EXPECT() *MockrepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockrepository) SaveUserHistoryRecord ¶
func (m *Mockrepository) SaveUserHistoryRecord(ctx context.Context, record *models.UserHistoryRecord) error
SaveUserHistoryRecord mocks base method.
func (*Mockrepository) UpdateTokenLastUsed ¶
func (m *Mockrepository) UpdateTokenLastUsed(ctx context.Context, tokenID int, when time.Time) error
UpdateTokenLastUsed 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) SaveUserHistoryRecord ¶
func (mr *MockrepositoryMockRecorder) SaveUserHistoryRecord(ctx, record any) *gomock.Call
SaveUserHistoryRecord indicates an expected call of SaveUserHistoryRecord.
func (*MockrepositoryMockRecorder) UpdateTokenLastUsed ¶
func (mr *MockrepositoryMockRecorder) UpdateTokenLastUsed(ctx, tokenID, when any) *gomock.Call
UpdateTokenLastUsed indicates an expected call of UpdateTokenLastUsed.
func (*MockrepositoryMockRecorder) WithTransaction ¶
func (mr *MockrepositoryMockRecorder) WithTransaction(ctx, fn any) *gomock.Call
WithTransaction indicates an expected call of WithTransaction.
type Mocksubscriber ¶
type Mocksubscriber struct {
// contains filtered or unexported fields
}
Mocksubscriber is a mock of subscriber interface.
func NewMocksubscriber ¶
func NewMocksubscriber(ctrl *gomock.Controller) *Mocksubscriber
NewMocksubscriber creates a new mock instance.
func (*Mocksubscriber) EXPECT ¶
func (m *Mocksubscriber) EXPECT() *MocksubscriberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocksubscriberMockRecorder ¶
type MocksubscriberMockRecorder struct {
// contains filtered or unexported fields
}
MocksubscriberMockRecorder is the mock recorder for Mocksubscriber.