mock_mongo

package
v0.0.0-...-3b7a923 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_mongo is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTaskRepository

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

MockTaskRepository is a mock of TaskRepository interface.

func NewMockTaskRepository

func NewMockTaskRepository(ctrl *gomock.Controller) *MockTaskRepository

NewMockTaskRepository creates a new mock instance.

func (*MockTaskRepository) Add

func (m *MockTaskRepository) Add(task *models.Task) error

Add mocks base method.

func (*MockTaskRepository) Delete

func (m *MockTaskRepository) Delete(taskId string) error

Delete mocks base method.

func (*MockTaskRepository) EXPECT

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

func (*MockTaskRepository) Get

func (m *MockTaskRepository) Get(taskId string) models.Task

Get mocks base method.

func (*MockTaskRepository) GetAll

func (m *MockTaskRepository) GetAll(limit int64) ([]*models.Task, error)

GetAll mocks base method.

func (*MockTaskRepository) GetOneByVideoNameAndKind

func (m *MockTaskRepository) GetOneByVideoNameAndKind(name string, kind models.TaskKind) (*models.Task, error)

GetOneByVideoNameAndKind mocks base method.

func (*MockTaskRepository) GetTranscodeTasksByVideoNameAndResolution

func (m *MockTaskRepository) GetTranscodeTasksByVideoNameAndResolution(name, resolution string) ([]*models.Task, error)

GetTranscodeTasksByVideoNameAndResolution mocks base method.

func (*MockTaskRepository) Update

func (m *MockTaskRepository) Update(task *models.Task) error

Update mocks base method.

type MockTaskRepositoryMockRecorder

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

MockTaskRepositoryMockRecorder is the mock recorder for MockTaskRepository.

func (*MockTaskRepositoryMockRecorder) Add

func (mr *MockTaskRepositoryMockRecorder) Add(task interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockTaskRepositoryMockRecorder) Delete

func (mr *MockTaskRepositoryMockRecorder) Delete(taskId interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTaskRepositoryMockRecorder) Get

func (mr *MockTaskRepositoryMockRecorder) Get(taskId interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockTaskRepositoryMockRecorder) GetAll

func (mr *MockTaskRepositoryMockRecorder) GetAll(limit interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockTaskRepositoryMockRecorder) GetOneByVideoNameAndKind

func (mr *MockTaskRepositoryMockRecorder) GetOneByVideoNameAndKind(name, kind interface{}) *gomock.Call

GetOneByVideoNameAndKind indicates an expected call of GetOneByVideoNameAndKind.

func (*MockTaskRepositoryMockRecorder) GetTranscodeTasksByVideoNameAndResolution

func (mr *MockTaskRepositoryMockRecorder) GetTranscodeTasksByVideoNameAndResolution(name, resolution interface{}) *gomock.Call

GetTranscodeTasksByVideoNameAndResolution indicates an expected call of GetTranscodeTasksByVideoNameAndResolution.

func (*MockTaskRepositoryMockRecorder) Update

func (mr *MockTaskRepositoryMockRecorder) Update(task interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockVideoRepository

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

MockVideoRepository is a mock of VideoRepository interface.

func NewMockVideoRepository

func NewMockVideoRepository(ctrl *gomock.Controller) *MockVideoRepository

NewMockVideoRepository creates a new mock instance.

func (*MockVideoRepository) Add

func (m *MockVideoRepository) Add(video *models.Video) error

Add mocks base method.

func (*MockVideoRepository) AddMany

func (m *MockVideoRepository) AddMany(videoList []*models.Video) error

AddMany mocks base method.

func (*MockVideoRepository) Delete

func (m *MockVideoRepository) Delete(videoId uint) error

Delete mocks base method.

func (*MockVideoRepository) EXPECT

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

func (*MockVideoRepository) Find

func (m *MockVideoRepository) Find(key string) []*models.Video

Find mocks base method.

func (*MockVideoRepository) Get

func (m *MockVideoRepository) Get(videoId uint) models.Video

Get mocks base method.

func (*MockVideoRepository) GetAvailable

func (m *MockVideoRepository) GetAvailable(limit int64) ([]*models.Video, error)

GetAvailable mocks base method.

func (*MockVideoRepository) GetOneByName

func (m *MockVideoRepository) GetOneByName(key string) (*models.Video, error)

GetOneByName mocks base method.

func (*MockVideoRepository) Update

func (m *MockVideoRepository) Update(video *models.Video) error

Update mocks base method.

type MockVideoRepositoryMockRecorder

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

MockVideoRepositoryMockRecorder is the mock recorder for MockVideoRepository.

func (*MockVideoRepositoryMockRecorder) Add

func (mr *MockVideoRepositoryMockRecorder) Add(video interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockVideoRepositoryMockRecorder) AddMany

func (mr *MockVideoRepositoryMockRecorder) AddMany(videoList interface{}) *gomock.Call

AddMany indicates an expected call of AddMany.

func (*MockVideoRepositoryMockRecorder) Delete

func (mr *MockVideoRepositoryMockRecorder) Delete(videoId interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockVideoRepositoryMockRecorder) Find

func (mr *MockVideoRepositoryMockRecorder) Find(key interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockVideoRepositoryMockRecorder) Get

func (mr *MockVideoRepositoryMockRecorder) Get(videoId interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockVideoRepositoryMockRecorder) GetAvailable

func (mr *MockVideoRepositoryMockRecorder) GetAvailable(limit interface{}) *gomock.Call

GetAvailable indicates an expected call of GetAvailable.

func (*MockVideoRepositoryMockRecorder) GetOneByName

func (mr *MockVideoRepositoryMockRecorder) GetOneByName(key interface{}) *gomock.Call

GetOneByName indicates an expected call of GetOneByName.

func (*MockVideoRepositoryMockRecorder) Update

func (mr *MockVideoRepositoryMockRecorder) Update(video interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockWorkerRepository

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

MockWorkerRepository is a mock of WorkerRepository interface.

func NewMockWorkerRepository

func NewMockWorkerRepository(ctrl *gomock.Controller) *MockWorkerRepository

NewMockWorkerRepository creates a new mock instance.

func (*MockWorkerRepository) Add

func (m *MockWorkerRepository) Add(worker *models.Worker) error

Add mocks base method.

func (*MockWorkerRepository) Delete

func (m *MockWorkerRepository) Delete(workerId uint) error

Delete mocks base method.

func (*MockWorkerRepository) EXPECT

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

func (*MockWorkerRepository) Get

func (m *MockWorkerRepository) Get(workerId uint) models.Worker

Get mocks base method.

func (*MockWorkerRepository) GetAll

func (m *MockWorkerRepository) GetAll(limit int64) ([]*models.Worker, error)

GetAll mocks base method.

func (*MockWorkerRepository) Upsert

func (m *MockWorkerRepository) Upsert(worker *models.Worker) error

Upsert mocks base method.

type MockWorkerRepositoryMockRecorder

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

MockWorkerRepositoryMockRecorder is the mock recorder for MockWorkerRepository.

func (*MockWorkerRepositoryMockRecorder) Add

func (mr *MockWorkerRepositoryMockRecorder) Add(worker interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockWorkerRepositoryMockRecorder) Delete

func (mr *MockWorkerRepositoryMockRecorder) Delete(workerId interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockWorkerRepositoryMockRecorder) Get

func (mr *MockWorkerRepositoryMockRecorder) Get(workerId interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockWorkerRepositoryMockRecorder) GetAll

func (mr *MockWorkerRepositoryMockRecorder) GetAll(limit interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockWorkerRepositoryMockRecorder) Upsert

func (mr *MockWorkerRepositoryMockRecorder) Upsert(worker interface{}) *gomock.Call

Upsert indicates an expected call of Upsert.

Jump to

Keyboard shortcuts

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