Documentation ¶
Overview ¶
Package mock_mongo is a generated GoMock package.
Index ¶
- type MockTaskRepository
- func (m *MockTaskRepository) Add(task *models.Task) error
- func (m *MockTaskRepository) Delete(taskId string) error
- func (m *MockTaskRepository) EXPECT() *MockTaskRepositoryMockRecorder
- func (m *MockTaskRepository) Get(taskId string) models.Task
- func (m *MockTaskRepository) GetAll(limit int64) ([]*models.Task, error)
- func (m *MockTaskRepository) GetOneByVideoNameAndKind(name string, kind models.TaskKind) (*models.Task, error)
- func (m *MockTaskRepository) GetTranscodeTasksByVideoNameAndResolution(name, resolution string) ([]*models.Task, error)
- func (m *MockTaskRepository) Update(task *models.Task) error
- type MockTaskRepositoryMockRecorder
- func (mr *MockTaskRepositoryMockRecorder) Add(task interface{}) *gomock.Call
- func (mr *MockTaskRepositoryMockRecorder) Delete(taskId interface{}) *gomock.Call
- func (mr *MockTaskRepositoryMockRecorder) Get(taskId interface{}) *gomock.Call
- func (mr *MockTaskRepositoryMockRecorder) GetAll(limit interface{}) *gomock.Call
- func (mr *MockTaskRepositoryMockRecorder) GetOneByVideoNameAndKind(name, kind interface{}) *gomock.Call
- func (mr *MockTaskRepositoryMockRecorder) GetTranscodeTasksByVideoNameAndResolution(name, resolution interface{}) *gomock.Call
- func (mr *MockTaskRepositoryMockRecorder) Update(task interface{}) *gomock.Call
- type MockVideoRepository
- func (m *MockVideoRepository) Add(video *models.Video) error
- func (m *MockVideoRepository) AddMany(videoList []*models.Video) error
- func (m *MockVideoRepository) Delete(videoId uint) error
- func (m *MockVideoRepository) EXPECT() *MockVideoRepositoryMockRecorder
- func (m *MockVideoRepository) Find(key string) []*models.Video
- func (m *MockVideoRepository) Get(videoId uint) models.Video
- func (m *MockVideoRepository) GetAvailable(limit int64) ([]*models.Video, error)
- func (m *MockVideoRepository) GetOneByName(key string) (*models.Video, error)
- func (m *MockVideoRepository) Update(video *models.Video) error
- type MockVideoRepositoryMockRecorder
- func (mr *MockVideoRepositoryMockRecorder) Add(video interface{}) *gomock.Call
- func (mr *MockVideoRepositoryMockRecorder) AddMany(videoList interface{}) *gomock.Call
- func (mr *MockVideoRepositoryMockRecorder) Delete(videoId interface{}) *gomock.Call
- func (mr *MockVideoRepositoryMockRecorder) Find(key interface{}) *gomock.Call
- func (mr *MockVideoRepositoryMockRecorder) Get(videoId interface{}) *gomock.Call
- func (mr *MockVideoRepositoryMockRecorder) GetAvailable(limit interface{}) *gomock.Call
- func (mr *MockVideoRepositoryMockRecorder) GetOneByName(key interface{}) *gomock.Call
- func (mr *MockVideoRepositoryMockRecorder) Update(video interface{}) *gomock.Call
- type MockWorkerRepository
- func (m *MockWorkerRepository) Add(worker *models.Worker) error
- func (m *MockWorkerRepository) Delete(workerId uint) error
- func (m *MockWorkerRepository) EXPECT() *MockWorkerRepositoryMockRecorder
- func (m *MockWorkerRepository) Get(workerId uint) models.Worker
- func (m *MockWorkerRepository) GetAll(limit int64) ([]*models.Worker, error)
- func (m *MockWorkerRepository) Upsert(worker *models.Worker) error
- type MockWorkerRepositoryMockRecorder
- func (mr *MockWorkerRepositoryMockRecorder) Add(worker interface{}) *gomock.Call
- func (mr *MockWorkerRepositoryMockRecorder) Delete(workerId interface{}) *gomock.Call
- func (mr *MockWorkerRepositoryMockRecorder) Get(workerId interface{}) *gomock.Call
- func (mr *MockWorkerRepositoryMockRecorder) GetAll(limit interface{}) *gomock.Call
- func (mr *MockWorkerRepositoryMockRecorder) Upsert(worker interface{}) *gomock.Call
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 ¶
func (m *MockTaskRepository) EXPECT() *MockTaskRepositoryMockRecorder
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.
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 ¶
func (m *MockVideoRepository) EXPECT() *MockVideoRepositoryMockRecorder
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.
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 ¶
func (m *MockWorkerRepository) EXPECT() *MockWorkerRepositoryMockRecorder
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.
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.