mock

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

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

Go to latest
Published: Sep 2, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDelegator

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

MockDelegator is a mock of IDelegator interface

func NewMockDelegator

func NewMockDelegator(ctrl *gomock.Controller) *MockDelegator

NewMockDelegator creates a new mock instance

func (*MockDelegator) Delegate

func (m *MockDelegator) Delegate(ctx context.Context, queueName string, message []byte) error

Delegate mocks base method

func (*MockDelegator) EXPECT

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

type MockDelegatorMockRecorder

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

MockDelegatorMockRecorder is the mock recorder for MockDelegator

func (*MockDelegatorMockRecorder) Delegate

func (mr *MockDelegatorMockRecorder) Delegate(ctx, queueName, message interface{}) *gomock.Call

Delegate indicates an expected call of Delegate

type MockIQueueItem

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

MockIQueueItem is a mock of IQueueItem interface

func NewMockIQueueItem

func NewMockIQueueItem(ctrl *gomock.Controller) *MockIQueueItem

NewMockIQueueItem creates a new mock instance

func (*MockIQueueItem) Complete

func (m *MockIQueueItem) Complete(ctx context.Context, err error)

Complete mocks base method

func (*MockIQueueItem) Data

func (m *MockIQueueItem) Data() []byte

Data mocks base method

func (*MockIQueueItem) EXPECT

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

type MockIQueueItemMockRecorder

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

MockIQueueItemMockRecorder is the mock recorder for MockIQueueItem

func (*MockIQueueItemMockRecorder) Complete

func (mr *MockIQueueItemMockRecorder) Complete(ctx, err interface{}) *gomock.Call

Complete indicates an expected call of Complete

func (*MockIQueueItemMockRecorder) Data

Data indicates an expected call of Data

type MockQueue

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

MockQueue is a mock of IQueue interface

func NewMockQueue

func NewMockQueue(ctrl *gomock.Controller) *MockQueue

NewMockQueue creates a new mock instance

func (*MockQueue) Dequeue

func (m *MockQueue) Dequeue(ctx context.Context) (<-chan abs.IQueueItem, error)

Dequeue mocks base method

func (*MockQueue) Dispose

func (m *MockQueue) Dispose()

Dispose mocks base method

func (*MockQueue) EXPECT

func (m *MockQueue) EXPECT() *MockQueueMockRecorder

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

func (*MockQueue) Enqueue

func (m *MockQueue) Enqueue(ctx context.Context, data []byte) error

Enqueue mocks base method

type MockQueueMockRecorder

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

MockQueueMockRecorder is the mock recorder for MockQueue

func (*MockQueueMockRecorder) Dequeue

func (mr *MockQueueMockRecorder) Dequeue(ctx interface{}) *gomock.Call

Dequeue indicates an expected call of Dequeue

func (*MockQueueMockRecorder) Dispose

func (mr *MockQueueMockRecorder) Dispose() *gomock.Call

Dispose indicates an expected call of Dispose

func (*MockQueueMockRecorder) Enqueue

func (mr *MockQueueMockRecorder) Enqueue(ctx, data interface{}) *gomock.Call

Enqueue indicates an expected call of Enqueue

type MockWorkerPool

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

MockWorkerPool is a mock of IWorkerPool interface

func NewMockWorkerPool

func NewMockWorkerPool(ctrl *gomock.Controller) *MockWorkerPool

NewMockWorkerPool creates a new mock instance

func (*MockWorkerPool) BindWorker

func (m *MockWorkerPool) BindWorker(ctx context.Context, queueName string, worker abs.WorkerFunc) error

RegisterWorker mocks base method

func (*MockWorkerPool) EXPECT

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

type MockWorkerPoolMockRecorder

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

MockWorkerPoolMockRecorder is the mock recorder for MockWorkerPool

func (*MockWorkerPoolMockRecorder) AddWorker

func (mr *MockWorkerPoolMockRecorder) AddWorker(ctx, queueName, worker interface{}) *gomock.Call

RegisterWorker indicates an expected call of RegisterWorker

Jump to

Keyboard shortcuts

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