mock_job

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_job 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) Cancel

func (m *MockRepository) Cancel(ctx context.Context, id string) (core.Job, error)

Cancel mocks base method.

func (*MockRepository) Clean

func (m *MockRepository) Clean(ctx context.Context, olderThan time.Time) ([]core.Job, error)

Clean mocks base method.

func (*MockRepository) Complete

func (m *MockRepository) Complete(ctx context.Context, id, status, result string) (core.Job, error)

Complete mocks base method.

func (*MockRepository) Dequeue

func (m *MockRepository) Dequeue(ctx context.Context) (*core.Job, error)

Dequeue mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) Enqueue

func (m *MockRepository) Enqueue(ctx context.Context, author, typ, payload string, scheduled time.Time) (core.Job, error)

Enqueue mocks base method.

func (*MockRepository) List

func (m *MockRepository) List(ctx context.Context, authorID string) ([]core.Job, error)

List mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Cancel

func (mr *MockRepositoryMockRecorder) Cancel(ctx, id any) *gomock.Call

Cancel indicates an expected call of Cancel.

func (*MockRepositoryMockRecorder) Clean

func (mr *MockRepositoryMockRecorder) Clean(ctx, olderThan any) *gomock.Call

Clean indicates an expected call of Clean.

func (*MockRepositoryMockRecorder) Complete

func (mr *MockRepositoryMockRecorder) Complete(ctx, id, status, result any) *gomock.Call

Complete indicates an expected call of Complete.

func (*MockRepositoryMockRecorder) Dequeue

func (mr *MockRepositoryMockRecorder) Dequeue(ctx any) *gomock.Call

Dequeue indicates an expected call of Dequeue.

func (*MockRepositoryMockRecorder) Enqueue

func (mr *MockRepositoryMockRecorder) Enqueue(ctx, author, typ, payload, scheduled any) *gomock.Call

Enqueue indicates an expected call of Enqueue.

func (*MockRepositoryMockRecorder) List

func (mr *MockRepositoryMockRecorder) List(ctx, authorID any) *gomock.Call

List indicates an expected call of List.

Jump to

Keyboard shortcuts

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