mock_db

package
v0.0.0-...-4ecb97e Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_db is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDbal

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

MockDbal is a mock of Dbal interface.

func NewMockDbal

func NewMockDbal(ctrl *gomock.Controller) *MockDbal

NewMockDbal creates a new mock instance.

func (*MockDbal) CreateIndexes

func (m *MockDbal) CreateIndexes(ctx context.Context) error

CreateIndexes mocks base method.

func (*MockDbal) CreateTask

func (m *MockDbal) CreateTask(ctx context.Context, task db.Task) error

CreateTask mocks base method.

func (*MockDbal) CreateUser

func (m *MockDbal) CreateUser(ctx context.Context, user db.User) error

CreateUser mocks base method.

func (*MockDbal) DeleteTaskByID

func (m *MockDbal) DeleteTaskByID(ctx context.Context, id string) error

DeleteTaskByID mocks base method.

func (*MockDbal) DeleteTasksBysUserID

func (m *MockDbal) DeleteTasksBysUserID(ctx context.Context, userId string) error

DeleteTasksBysUserID mocks base method.

func (*MockDbal) DeleteUser

func (m *MockDbal) DeleteUser(ctx context.Context, id string) error

DeleteUser mocks base method.

func (*MockDbal) EXPECT

func (m *MockDbal) EXPECT() *MockDbalMockRecorder

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

func (*MockDbal) GetNextTask

func (m *MockDbal) GetNextTask(ctx context.Context) (*db.Task, error)

GetNextTask mocks base method.

func (*MockDbal) GetTasksByUserID

func (m *MockDbal) GetTasksByUserID(ctx context.Context, id string) ([]db.Task, error)

GetTasksByUserID mocks base method.

func (*MockDbal) GetUserByEmail

func (m *MockDbal) GetUserByEmail(ctx context.Context, email string) (db.User, error)

GetUserByEmail mocks base method.

func (*MockDbal) GetUserByID

func (m *MockDbal) GetUserByID(ctx context.Context, id string) (db.User, error)

GetUserByID mocks base method.

func (*MockDbal) NewConnection

func (m *MockDbal) NewConnection(address string) error

NewConnection mocks base method.

func (*MockDbal) Ping

func (m *MockDbal) Ping() error

Ping mocks base method.

func (*MockDbal) UpdateTaskLogs

func (m *MockDbal) UpdateTaskLogs(ctx context.Context, taskID string, logs string) error

UpdateTaskLogs mocks base method.

func (*MockDbal) UpdateTaskStatus

func (m *MockDbal) UpdateTaskStatus(ctx context.Context, taskID string, status db.Status) error

UpdateTaskStatus mocks base method.

type MockDbalMockRecorder

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

MockDbalMockRecorder is the mock recorder for MockDbal.

func (*MockDbalMockRecorder) CreateIndexes

func (mr *MockDbalMockRecorder) CreateIndexes(ctx interface{}) *gomock.Call

CreateIndexes indicates an expected call of CreateIndexes.

func (*MockDbalMockRecorder) CreateTask

func (mr *MockDbalMockRecorder) CreateTask(ctx, task interface{}) *gomock.Call

CreateTask indicates an expected call of CreateTask.

func (*MockDbalMockRecorder) CreateUser

func (mr *MockDbalMockRecorder) CreateUser(ctx, user interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockDbalMockRecorder) DeleteTaskByID

func (mr *MockDbalMockRecorder) DeleteTaskByID(ctx, id interface{}) *gomock.Call

DeleteTaskByID indicates an expected call of DeleteTaskByID.

func (*MockDbalMockRecorder) DeleteTasksBysUserID

func (mr *MockDbalMockRecorder) DeleteTasksBysUserID(ctx, userId interface{}) *gomock.Call

DeleteTasksBysUserID indicates an expected call of DeleteTasksBysUserID.

func (*MockDbalMockRecorder) DeleteUser

func (mr *MockDbalMockRecorder) DeleteUser(ctx, id interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockDbalMockRecorder) GetNextTask

func (mr *MockDbalMockRecorder) GetNextTask(ctx interface{}) *gomock.Call

GetNextTask indicates an expected call of GetNextTask.

func (*MockDbalMockRecorder) GetTasksByUserID

func (mr *MockDbalMockRecorder) GetTasksByUserID(ctx, id interface{}) *gomock.Call

GetTasksByUserID indicates an expected call of GetTasksByUserID.

func (*MockDbalMockRecorder) GetUserByEmail

func (mr *MockDbalMockRecorder) GetUserByEmail(ctx, email interface{}) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockDbalMockRecorder) GetUserByID

func (mr *MockDbalMockRecorder) GetUserByID(ctx, id interface{}) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockDbalMockRecorder) NewConnection

func (mr *MockDbalMockRecorder) NewConnection(address interface{}) *gomock.Call

NewConnection indicates an expected call of NewConnection.

func (*MockDbalMockRecorder) Ping

func (mr *MockDbalMockRecorder) Ping() *gomock.Call

Ping indicates an expected call of Ping.

func (*MockDbalMockRecorder) UpdateTaskStatus

func (mr *MockDbalMockRecorder) UpdateTaskStatus(ctx, taskID, status interface{}) *gomock.Call

UpdateTaskStatus indicates an expected call of UpdateTaskStatus.

Jump to

Keyboard shortcuts

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