mock_core

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 5 Imported by: 0

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

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.

func (*MockClock) Now

func (m *MockClock) Now() time.Time

Now mocks base method.

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

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.

func (*MockSessionManagerMockRecorder) Revoke

func (mr *MockSessionManagerMockRecorder) Revoke(arg0, arg1, arg2 any) *gomock.Call

Revoke indicates an expected call of Revoke.

func (*MockSessionManagerMockRecorder) Validate

func (mr *MockSessionManagerMockRecorder) Validate(arg0, arg1 any) *gomock.Call

Validate indicates an expected call of Validate.

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) Create

func (m *MockSessionRepository) Create(arg0 context.Context, arg1 *core.Session) error

Create mocks base method.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSessionRepository) Find

func (m *MockSessionRepository) Find(arg0 context.Context, arg1 string) (*core.Session, error)

Find mocks base method.

func (*MockSessionRepository) FindByUser

func (m *MockSessionRepository) FindByUser(arg0 context.Context, arg1 int64) ([]*core.Session, error)

FindByUser mocks base method.

func (*MockSessionRepository) Update

func (m *MockSessionRepository) Update(arg0 context.Context, arg1 *core.Session) error

Update 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.

func (*MockSessionRepositoryMockRecorder) Update

func (mr *MockSessionRepositoryMockRecorder) Update(arg0, arg1 any) *gomock.Call

Update indicates an expected call of Update.

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) Create

func (m *MockTokenRepository) Create(arg0 context.Context, arg1 *core.Token) error

Create mocks base method.

func (*MockTokenRepository) Delete

func (m *MockTokenRepository) Delete(arg0 context.Context, arg1 *core.Token) error

Delete mocks base method.

func (*MockTokenRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTokenRepository) FindByToken

func (m *MockTokenRepository) FindByToken(arg0 context.Context, arg1 string) (*core.Token, error)

FindByToken mocks base method.

func (*MockTokenRepository) FindByUser

func (m *MockTokenRepository) FindByUser(arg0 context.Context, arg1 int64) ([]*core.Token, error)

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) Create

func (m *MockTokenService) Create(arg0 context.Context, arg1 int64, arg2 string) (string, error)

Create mocks base method.

func (*MockTokenService) EXPECT

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.

func (*MockTokenServiceMockRecorder) Revoke

func (mr *MockTokenServiceMockRecorder) Revoke(arg0, arg1 any) *gomock.Call

Revoke indicates an expected call of Revoke.

func (*MockTokenServiceMockRecorder) Validate

func (mr *MockTokenServiceMockRecorder) Validate(arg0, arg1 any) *gomock.Call

Validate indicates an expected call of Validate.

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) Activate

func (m *MockTwoFactorAuthService) Activate(arg0 context.Context, arg1 int64, arg2 string) error

Activate mocks base method.

func (*MockTwoFactorAuthService) Deactivate

func (m *MockTwoFactorAuthService) Deactivate(arg0 context.Context, arg1 int64, arg2 string) error

Deactivate mocks base method.

func (*MockTwoFactorAuthService) EXPECT

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.

func (*MockTwoFactorAuthService) Setup

func (m *MockTwoFactorAuthService) Setup(arg0 context.Context, arg1 int64) (string, error)

Setup mocks base method.

func (*MockTwoFactorAuthService) Verify

func (m *MockTwoFactorAuthService) Verify(arg0 context.Context, arg1 int64, arg2 *string) error

Verify 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.

func (*MockTwoFactorAuthServiceMockRecorder) Setup

func (mr *MockTwoFactorAuthServiceMockRecorder) Setup(arg0, arg1 any) *gomock.Call

Setup indicates an expected call of Setup.

func (*MockTwoFactorAuthServiceMockRecorder) Verify

func (mr *MockTwoFactorAuthServiceMockRecorder) Verify(arg0, arg1, arg2 any) *gomock.Call

Verify indicates an expected call of Verify.

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

Create mocks base method.

func (*MockTwoFactorSettingsRepository) Delete

Delete mocks base method.

func (*MockTwoFactorSettingsRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTwoFactorSettingsRepository) Find

Find mocks base method.

func (*MockTwoFactorSettingsRepository) Save

Save mocks base method.

func (*MockTwoFactorSettingsRepository) Update

Update mocks base method.

type MockTwoFactorSettingsRepositoryMockRecorder

type MockTwoFactorSettingsRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockTwoFactorSettingsRepositoryMockRecorder is the mock recorder for MockTwoFactorSettingsRepository.

func (*MockTwoFactorSettingsRepositoryMockRecorder) Create

Create indicates an expected call of Create.

func (*MockTwoFactorSettingsRepositoryMockRecorder) Delete

Delete indicates an expected call of Delete.

func (*MockTwoFactorSettingsRepositoryMockRecorder) Find

Find indicates an expected call of Find.

func (*MockTwoFactorSettingsRepositoryMockRecorder) Save

Save indicates an expected call of Save.

func (*MockTwoFactorSettingsRepositoryMockRecorder) Update

Update indicates an expected call of Update.

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) Create

func (m *MockUserRepository) Create(arg0 context.Context, arg1 *core.User) error

Create mocks base method.

func (*MockUserRepository) Delete

func (m *MockUserRepository) Delete(arg0 context.Context, arg1 *core.User) error

Delete mocks base method.

func (*MockUserRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserRepository) Find

Find mocks base method.

func (*MockUserRepository) FindById

func (m *MockUserRepository) FindById(arg0 context.Context, arg1 int64) (*core.User, error)

FindById mocks base method.

func (*MockUserRepository) FindByUsername

func (m *MockUserRepository) FindByUsername(arg0 context.Context, arg1 string) (*core.User, error)

FindByUsername mocks base method.

func (*MockUserRepository) Update

func (m *MockUserRepository) Update(arg0 context.Context, arg1 *core.User) error

Update 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.

func (*MockUserRepositoryMockRecorder) Update

func (mr *MockUserRepositoryMockRecorder) Update(arg0, arg1 any) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL