Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/davidborzek/tvhgo/core (interfaces: UserRepository,SessionRepository,Clock,TwoFactorAuthService,TwoFactorSettingsRepository,TokenRepository,TokenService,SessionManager)
Generated by this command:
mockgen -destination=mock_gen.go github.com/davidborzek/tvhgo/core UserRepository,SessionRepository,Clock,TwoFactorAuthService,TwoFactorSettingsRepository,TokenRepository,TokenService,SessionManager
Package mock_core is a generated GoMock package.
Index ¶
- type MockClock
- type MockClockMockRecorder
- type MockSessionManager
- func (m *MockSessionManager) Create(arg0 context.Context, arg1 int64, arg2, arg3 string) (string, error)
- func (m *MockSessionManager) EXPECT() *MockSessionManagerMockRecorder
- func (m *MockSessionManager) Revoke(arg0 context.Context, arg1, arg2 int64) error
- func (m *MockSessionManager) Validate(arg0 context.Context, arg1 string) (*core.AuthContext, *string, error)
- type MockSessionManagerMockRecorder
- type MockSessionRepository
- func (m *MockSessionRepository) Create(arg0 context.Context, arg1 *core.Session) error
- func (m *MockSessionRepository) Delete(arg0 context.Context, arg1, arg2 int64) error
- func (m *MockSessionRepository) DeleteExpired(arg0 context.Context, arg1, arg2 int64) (int64, error)
- func (m *MockSessionRepository) EXPECT() *MockSessionRepositoryMockRecorder
- func (m *MockSessionRepository) Find(arg0 context.Context, arg1 string) (*core.Session, error)
- func (m *MockSessionRepository) FindByUser(arg0 context.Context, arg1 int64) ([]*core.Session, error)
- func (m *MockSessionRepository) Update(arg0 context.Context, arg1 *core.Session) error
- type MockSessionRepositoryMockRecorder
- func (mr *MockSessionRepositoryMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockSessionRepositoryMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockSessionRepositoryMockRecorder) DeleteExpired(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockSessionRepositoryMockRecorder) Find(arg0, arg1 any) *gomock.Call
- func (mr *MockSessionRepositoryMockRecorder) FindByUser(arg0, arg1 any) *gomock.Call
- func (mr *MockSessionRepositoryMockRecorder) Update(arg0, arg1 any) *gomock.Call
- type MockTokenRepository
- func (m *MockTokenRepository) Create(arg0 context.Context, arg1 *core.Token) error
- func (m *MockTokenRepository) Delete(arg0 context.Context, arg1 *core.Token) error
- func (m *MockTokenRepository) EXPECT() *MockTokenRepositoryMockRecorder
- func (m *MockTokenRepository) FindByToken(arg0 context.Context, arg1 string) (*core.Token, error)
- func (m *MockTokenRepository) FindByUser(arg0 context.Context, arg1 int64) ([]*core.Token, error)
- type MockTokenRepositoryMockRecorder
- func (mr *MockTokenRepositoryMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockTokenRepositoryMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockTokenRepositoryMockRecorder) FindByToken(arg0, arg1 any) *gomock.Call
- func (mr *MockTokenRepositoryMockRecorder) FindByUser(arg0, arg1 any) *gomock.Call
- type MockTokenService
- func (m *MockTokenService) Create(arg0 context.Context, arg1 int64, arg2 string) (string, error)
- func (m *MockTokenService) EXPECT() *MockTokenServiceMockRecorder
- func (m *MockTokenService) Revoke(arg0 context.Context, arg1 int64) error
- func (m *MockTokenService) Validate(arg0 context.Context, arg1 string) (*core.AuthContext, error)
- type MockTokenServiceMockRecorder
- type MockTwoFactorAuthService
- func (m *MockTwoFactorAuthService) Activate(arg0 context.Context, arg1 int64, arg2 string) error
- func (m *MockTwoFactorAuthService) Deactivate(arg0 context.Context, arg1 int64, arg2 string) error
- func (m *MockTwoFactorAuthService) EXPECT() *MockTwoFactorAuthServiceMockRecorder
- func (m *MockTwoFactorAuthService) GetSettings(arg0 context.Context, arg1 int64) (*core.TwoFactorSettings, error)
- func (m *MockTwoFactorAuthService) Setup(arg0 context.Context, arg1 int64) (string, error)
- func (m *MockTwoFactorAuthService) Verify(arg0 context.Context, arg1 int64, arg2 *string) error
- type MockTwoFactorAuthServiceMockRecorder
- func (mr *MockTwoFactorAuthServiceMockRecorder) Activate(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockTwoFactorAuthServiceMockRecorder) Deactivate(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockTwoFactorAuthServiceMockRecorder) GetSettings(arg0, arg1 any) *gomock.Call
- func (mr *MockTwoFactorAuthServiceMockRecorder) Setup(arg0, arg1 any) *gomock.Call
- func (mr *MockTwoFactorAuthServiceMockRecorder) Verify(arg0, arg1, arg2 any) *gomock.Call
- type MockTwoFactorSettingsRepository
- func (m *MockTwoFactorSettingsRepository) Create(arg0 context.Context, arg1 *core.TwoFactorSettings) error
- func (m *MockTwoFactorSettingsRepository) Delete(arg0 context.Context, arg1 *core.TwoFactorSettings) error
- func (m *MockTwoFactorSettingsRepository) EXPECT() *MockTwoFactorSettingsRepositoryMockRecorder
- func (m *MockTwoFactorSettingsRepository) Find(arg0 context.Context, arg1 int64) (*core.TwoFactorSettings, error)
- func (m *MockTwoFactorSettingsRepository) Save(arg0 context.Context, arg1 *core.TwoFactorSettings) error
- func (m *MockTwoFactorSettingsRepository) Update(arg0 context.Context, arg1 *core.TwoFactorSettings) error
- type MockTwoFactorSettingsRepositoryMockRecorder
- func (mr *MockTwoFactorSettingsRepositoryMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockTwoFactorSettingsRepositoryMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockTwoFactorSettingsRepositoryMockRecorder) Find(arg0, arg1 any) *gomock.Call
- func (mr *MockTwoFactorSettingsRepositoryMockRecorder) Save(arg0, arg1 any) *gomock.Call
- func (mr *MockTwoFactorSettingsRepositoryMockRecorder) Update(arg0, arg1 any) *gomock.Call
- type MockUserRepository
- func (m *MockUserRepository) Create(arg0 context.Context, arg1 *core.User) error
- func (m *MockUserRepository) Delete(arg0 context.Context, arg1 *core.User) error
- func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
- func (m *MockUserRepository) Find(arg0 context.Context, arg1 core.UserQueryParams) ([]*core.User, error)
- func (m *MockUserRepository) FindById(arg0 context.Context, arg1 int64) (*core.User, error)
- func (m *MockUserRepository) FindByUsername(arg0 context.Context, arg1 string) (*core.User, error)
- func (m *MockUserRepository) Update(arg0 context.Context, arg1 *core.User) error
- type MockUserRepositoryMockRecorder
- func (mr *MockUserRepositoryMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) Find(arg0, arg1 any) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) FindById(arg0, arg1 any) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) FindByUsername(arg0, arg1 any) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) Update(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClock ¶
type MockClock struct {
// contains filtered or unexported fields
}
MockClock is a mock of Clock interface.
func NewMockClock ¶
func NewMockClock(ctrl *gomock.Controller) *MockClock
NewMockClock creates a new mock instance.
func (*MockClock) EXPECT ¶
func (m *MockClock) EXPECT() *MockClockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClockMockRecorder ¶
type MockClockMockRecorder struct {
// contains filtered or unexported fields
}
MockClockMockRecorder is the mock recorder for MockClock.
func (*MockClockMockRecorder) Now ¶
func (mr *MockClockMockRecorder) Now() *gomock.Call
Now indicates an expected call of Now.
type MockSessionManager ¶
type MockSessionManager struct {
// contains filtered or unexported fields
}
MockSessionManager is a mock of SessionManager interface.
func NewMockSessionManager ¶
func NewMockSessionManager(ctrl *gomock.Controller) *MockSessionManager
NewMockSessionManager creates a new mock instance.
func (*MockSessionManager) Create ¶
func (m *MockSessionManager) Create(arg0 context.Context, arg1 int64, arg2, arg3 string) (string, error)
Create mocks base method.
func (*MockSessionManager) EXPECT ¶
func (m *MockSessionManager) EXPECT() *MockSessionManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSessionManager) Revoke ¶
func (m *MockSessionManager) Revoke(arg0 context.Context, arg1, arg2 int64) error
Revoke mocks base method.
func (*MockSessionManager) Validate ¶
func (m *MockSessionManager) Validate(arg0 context.Context, arg1 string) (*core.AuthContext, *string, error)
Validate mocks base method.
type MockSessionManagerMockRecorder ¶
type MockSessionManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionManagerMockRecorder is the mock recorder for MockSessionManager.
func (*MockSessionManagerMockRecorder) Create ¶
func (mr *MockSessionManagerMockRecorder) Create(arg0, arg1, arg2, arg3 any) *gomock.Call
Create indicates an expected call of Create.
type MockSessionRepository ¶
type MockSessionRepository struct {
// contains filtered or unexported fields
}
MockSessionRepository is a mock of SessionRepository interface.
func NewMockSessionRepository ¶
func NewMockSessionRepository(ctrl *gomock.Controller) *MockSessionRepository
NewMockSessionRepository creates a new mock instance.
func (*MockSessionRepository) Delete ¶
func (m *MockSessionRepository) Delete(arg0 context.Context, arg1, arg2 int64) error
Delete mocks base method.
func (*MockSessionRepository) DeleteExpired ¶
func (m *MockSessionRepository) DeleteExpired(arg0 context.Context, arg1, arg2 int64) (int64, error)
DeleteExpired mocks base method.
func (*MockSessionRepository) EXPECT ¶
func (m *MockSessionRepository) EXPECT() *MockSessionRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSessionRepository) FindByUser ¶
func (m *MockSessionRepository) FindByUser(arg0 context.Context, arg1 int64) ([]*core.Session, error)
FindByUser mocks base method.
type MockSessionRepositoryMockRecorder ¶
type MockSessionRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionRepositoryMockRecorder is the mock recorder for MockSessionRepository.
func (*MockSessionRepositoryMockRecorder) Create ¶
func (mr *MockSessionRepositoryMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockSessionRepositoryMockRecorder) Delete ¶
func (mr *MockSessionRepositoryMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSessionRepositoryMockRecorder) DeleteExpired ¶
func (mr *MockSessionRepositoryMockRecorder) DeleteExpired(arg0, arg1, arg2 any) *gomock.Call
DeleteExpired indicates an expected call of DeleteExpired.
func (*MockSessionRepositoryMockRecorder) Find ¶
func (mr *MockSessionRepositoryMockRecorder) Find(arg0, arg1 any) *gomock.Call
Find indicates an expected call of Find.
func (*MockSessionRepositoryMockRecorder) FindByUser ¶
func (mr *MockSessionRepositoryMockRecorder) FindByUser(arg0, arg1 any) *gomock.Call
FindByUser indicates an expected call of FindByUser.
type MockTokenRepository ¶
type MockTokenRepository struct {
// contains filtered or unexported fields
}
MockTokenRepository is a mock of TokenRepository interface.
func NewMockTokenRepository ¶
func NewMockTokenRepository(ctrl *gomock.Controller) *MockTokenRepository
NewMockTokenRepository creates a new mock instance.
func (*MockTokenRepository) EXPECT ¶
func (m *MockTokenRepository) EXPECT() *MockTokenRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenRepository) FindByToken ¶
FindByToken mocks base method.
func (*MockTokenRepository) FindByUser ¶
FindByUser mocks base method.
type MockTokenRepositoryMockRecorder ¶
type MockTokenRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenRepositoryMockRecorder is the mock recorder for MockTokenRepository.
func (*MockTokenRepositoryMockRecorder) Create ¶
func (mr *MockTokenRepositoryMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockTokenRepositoryMockRecorder) Delete ¶
func (mr *MockTokenRepositoryMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTokenRepositoryMockRecorder) FindByToken ¶
func (mr *MockTokenRepositoryMockRecorder) FindByToken(arg0, arg1 any) *gomock.Call
FindByToken indicates an expected call of FindByToken.
func (*MockTokenRepositoryMockRecorder) FindByUser ¶
func (mr *MockTokenRepositoryMockRecorder) FindByUser(arg0, arg1 any) *gomock.Call
FindByUser indicates an expected call of FindByUser.
type MockTokenService ¶
type MockTokenService struct {
// contains filtered or unexported fields
}
MockTokenService is a mock of TokenService interface.
func NewMockTokenService ¶
func NewMockTokenService(ctrl *gomock.Controller) *MockTokenService
NewMockTokenService creates a new mock instance.
func (*MockTokenService) EXPECT ¶
func (m *MockTokenService) EXPECT() *MockTokenServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenService) Revoke ¶
func (m *MockTokenService) Revoke(arg0 context.Context, arg1 int64) error
Revoke mocks base method.
func (*MockTokenService) Validate ¶
func (m *MockTokenService) Validate(arg0 context.Context, arg1 string) (*core.AuthContext, error)
Validate mocks base method.
type MockTokenServiceMockRecorder ¶
type MockTokenServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenServiceMockRecorder is the mock recorder for MockTokenService.
func (*MockTokenServiceMockRecorder) Create ¶
func (mr *MockTokenServiceMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call
Create indicates an expected call of Create.
type MockTwoFactorAuthService ¶
type MockTwoFactorAuthService struct {
// contains filtered or unexported fields
}
MockTwoFactorAuthService is a mock of TwoFactorAuthService interface.
func NewMockTwoFactorAuthService ¶
func NewMockTwoFactorAuthService(ctrl *gomock.Controller) *MockTwoFactorAuthService
NewMockTwoFactorAuthService creates a new mock instance.
func (*MockTwoFactorAuthService) Deactivate ¶
Deactivate mocks base method.
func (*MockTwoFactorAuthService) EXPECT ¶
func (m *MockTwoFactorAuthService) EXPECT() *MockTwoFactorAuthServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTwoFactorAuthService) GetSettings ¶
func (m *MockTwoFactorAuthService) GetSettings(arg0 context.Context, arg1 int64) (*core.TwoFactorSettings, error)
GetSettings mocks base method.
type MockTwoFactorAuthServiceMockRecorder ¶
type MockTwoFactorAuthServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockTwoFactorAuthServiceMockRecorder is the mock recorder for MockTwoFactorAuthService.
func (*MockTwoFactorAuthServiceMockRecorder) Activate ¶
func (mr *MockTwoFactorAuthServiceMockRecorder) Activate(arg0, arg1, arg2 any) *gomock.Call
Activate indicates an expected call of Activate.
func (*MockTwoFactorAuthServiceMockRecorder) Deactivate ¶
func (mr *MockTwoFactorAuthServiceMockRecorder) Deactivate(arg0, arg1, arg2 any) *gomock.Call
Deactivate indicates an expected call of Deactivate.
func (*MockTwoFactorAuthServiceMockRecorder) GetSettings ¶
func (mr *MockTwoFactorAuthServiceMockRecorder) GetSettings(arg0, arg1 any) *gomock.Call
GetSettings indicates an expected call of GetSettings.
type MockTwoFactorSettingsRepository ¶
type MockTwoFactorSettingsRepository struct {
// contains filtered or unexported fields
}
MockTwoFactorSettingsRepository is a mock of TwoFactorSettingsRepository interface.
func NewMockTwoFactorSettingsRepository ¶
func NewMockTwoFactorSettingsRepository(ctrl *gomock.Controller) *MockTwoFactorSettingsRepository
NewMockTwoFactorSettingsRepository creates a new mock instance.
func (*MockTwoFactorSettingsRepository) Create ¶
func (m *MockTwoFactorSettingsRepository) Create(arg0 context.Context, arg1 *core.TwoFactorSettings) error
Create mocks base method.
func (*MockTwoFactorSettingsRepository) Delete ¶
func (m *MockTwoFactorSettingsRepository) Delete(arg0 context.Context, arg1 *core.TwoFactorSettings) error
Delete mocks base method.
func (*MockTwoFactorSettingsRepository) EXPECT ¶
func (m *MockTwoFactorSettingsRepository) EXPECT() *MockTwoFactorSettingsRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTwoFactorSettingsRepository) Find ¶
func (m *MockTwoFactorSettingsRepository) Find(arg0 context.Context, arg1 int64) (*core.TwoFactorSettings, error)
Find mocks base method.
func (*MockTwoFactorSettingsRepository) Save ¶
func (m *MockTwoFactorSettingsRepository) Save(arg0 context.Context, arg1 *core.TwoFactorSettings) error
Save mocks base method.
func (*MockTwoFactorSettingsRepository) Update ¶
func (m *MockTwoFactorSettingsRepository) Update(arg0 context.Context, arg1 *core.TwoFactorSettings) error
Update mocks base method.
type MockTwoFactorSettingsRepositoryMockRecorder ¶
type MockTwoFactorSettingsRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockTwoFactorSettingsRepositoryMockRecorder is the mock recorder for MockTwoFactorSettingsRepository.
func (*MockTwoFactorSettingsRepositoryMockRecorder) Create ¶
func (mr *MockTwoFactorSettingsRepositoryMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockTwoFactorSettingsRepositoryMockRecorder) Delete ¶
func (mr *MockTwoFactorSettingsRepositoryMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTwoFactorSettingsRepositoryMockRecorder) Find ¶
func (mr *MockTwoFactorSettingsRepositoryMockRecorder) Find(arg0, arg1 any) *gomock.Call
Find indicates an expected call of Find.
type MockUserRepository ¶
type MockUserRepository struct {
// contains filtered or unexported fields
}
MockUserRepository is a mock of UserRepository interface.
func NewMockUserRepository ¶
func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository
NewMockUserRepository creates a new mock instance.
func (*MockUserRepository) EXPECT ¶
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserRepository) Find ¶
func (m *MockUserRepository) Find(arg0 context.Context, arg1 core.UserQueryParams) ([]*core.User, error)
Find mocks base method.
func (*MockUserRepository) FindByUsername ¶
FindByUsername mocks base method.
type MockUserRepositoryMockRecorder ¶
type MockUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.
func (*MockUserRepositoryMockRecorder) Create ¶
func (mr *MockUserRepositoryMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserRepositoryMockRecorder) Delete ¶
func (mr *MockUserRepositoryMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserRepositoryMockRecorder) Find ¶
func (mr *MockUserRepositoryMockRecorder) Find(arg0, arg1 any) *gomock.Call
Find indicates an expected call of Find.
func (*MockUserRepositoryMockRecorder) FindById ¶
func (mr *MockUserRepositoryMockRecorder) FindById(arg0, arg1 any) *gomock.Call
FindById indicates an expected call of FindById.
func (*MockUserRepositoryMockRecorder) FindByUsername ¶
func (mr *MockUserRepositoryMockRecorder) FindByUsername(arg0, arg1 any) *gomock.Call
FindByUsername indicates an expected call of FindByUsername.