mocks

package
v0.0.0-...-dfd90ba Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (m *MockRepository) Authenticate(email, password string) (models.User, error)

Authenticate mocks base method.

func (*MockRepository) CheckAuth

func (m *MockRepository) CheckAuth(userId, sessionId string) (models.User, error)

CheckAuth mocks base method.

func (*MockRepository) DeleteSession

func (m *MockRepository) DeleteSession(userId, sessionId string) error

DeleteSession mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) Register

func (m *MockRepository) Register(user *models.User) error

Register mocks base method.

func (*MockRepository) SetSession

func (m *MockRepository) SetSession(id string, session *models.Session, expiration time.Duration) error

SetSession mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Authenticate

func (mr *MockRepositoryMockRecorder) Authenticate(email, password interface{}) *gomock.Call

Authenticate indicates an expected call of Authenticate.

func (*MockRepositoryMockRecorder) CheckAuth

func (mr *MockRepositoryMockRecorder) CheckAuth(userId, sessionId interface{}) *gomock.Call

CheckAuth indicates an expected call of CheckAuth.

func (*MockRepositoryMockRecorder) DeleteSession

func (mr *MockRepositoryMockRecorder) DeleteSession(userId, sessionId interface{}) *gomock.Call

DeleteSession indicates an expected call of DeleteSession.

func (*MockRepositoryMockRecorder) Register

func (mr *MockRepositoryMockRecorder) Register(user interface{}) *gomock.Call

Register indicates an expected call of Register.

func (*MockRepositoryMockRecorder) SetSession

func (mr *MockRepositoryMockRecorder) SetSession(id, session, expiration interface{}) *gomock.Call

SetSession indicates an expected call of SetSession.

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) Authenticate

func (m *MockService) Authenticate(login, hashedPassword string) (models.User, auth.SessionParams, error)

Authenticate mocks base method.

func (*MockService) CheckAuth

func (m *MockService) CheckAuth(userId, sessionId string) (models.User, error)

CheckAuth mocks base method.

func (*MockService) CreateSession

func (m *MockService) CreateSession(userId int) auth.SessionParams

CreateSession mocks base method.

func (*MockService) DeleteSession

func (m *MockService) DeleteSession(userId, sessionId string) error

DeleteSession mocks base method.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) Register

Register mocks base method.

func (*MockService) SetSession

func (m *MockService) SetSession(id string, session *models.Session, expiration time.Duration) error

SetSession mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) Authenticate

func (mr *MockServiceMockRecorder) Authenticate(login, hashedPassword interface{}) *gomock.Call

Authenticate indicates an expected call of Authenticate.

func (*MockServiceMockRecorder) CheckAuth

func (mr *MockServiceMockRecorder) CheckAuth(userId, sessionId interface{}) *gomock.Call

CheckAuth indicates an expected call of CheckAuth.

func (*MockServiceMockRecorder) CreateSession

func (mr *MockServiceMockRecorder) CreateSession(userId interface{}) *gomock.Call

CreateSession indicates an expected call of CreateSession.

func (*MockServiceMockRecorder) DeleteSession

func (mr *MockServiceMockRecorder) DeleteSession(userId, sessionId interface{}) *gomock.Call

DeleteSession indicates an expected call of DeleteSession.

func (*MockServiceMockRecorder) Register

func (mr *MockServiceMockRecorder) Register(user interface{}) *gomock.Call

Register indicates an expected call of Register.

func (*MockServiceMockRecorder) SetSession

func (mr *MockServiceMockRecorder) SetSession(id, session, expiration interface{}) *gomock.Call

SetSession indicates an expected call of SetSession.

Jump to

Keyboard shortcuts

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