dynworker

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package dynworker is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWorkerPool

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

MockWorkerPool is a mock of WorkerPool interface.

func NewMockWorkerPool

func NewMockWorkerPool(ctrl *gomock.Controller) *MockWorkerPool

NewMockWorkerPool creates a new mock instance.

func (*MockWorkerPool) EXPECT

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

func (*MockWorkerPool) MaxWorkers

func (m *MockWorkerPool) MaxWorkers() int64

MaxWorkers mocks base method.

func (*MockWorkerPool) MinWorkers

func (m *MockWorkerPool) MinWorkers() int64

MinWorkers mocks base method.

func (*MockWorkerPool) SetMaxWorkers added in v0.5.9

func (m *MockWorkerPool) SetMaxWorkers(arg0 int64)

SetMaxWorkers mocks base method.

func (*MockWorkerPool) SetMinWorkers added in v0.5.9

func (m *MockWorkerPool) SetMinWorkers(arg0 int64)

SetMinWorkers mocks base method.

func (*MockWorkerPool) SetTaskFunction added in v0.5.9

func (m *MockWorkerPool) SetTaskFunction(arg0 dynworker.TaskFn)

SetTaskFunction mocks base method.

func (*MockWorkerPool) Start

func (m *MockWorkerPool) Start()

Start mocks base method.

func (*MockWorkerPool) Stop

func (m *MockWorkerPool) Stop()

Stop mocks base method.

func (*MockWorkerPool) Submit

func (m *MockWorkerPool) Submit(arg0 dynworker.UserData) error

Submit mocks base method.

func (*MockWorkerPool) WorkerCount

func (m *MockWorkerPool) WorkerCount() int64

WorkerCount mocks base method.

type MockWorkerPoolMockRecorder

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

MockWorkerPoolMockRecorder is the mock recorder for MockWorkerPool.

func (*MockWorkerPoolMockRecorder) MaxWorkers

func (mr *MockWorkerPoolMockRecorder) MaxWorkers() *gomock.Call

MaxWorkers indicates an expected call of MaxWorkers.

func (*MockWorkerPoolMockRecorder) MinWorkers

func (mr *MockWorkerPoolMockRecorder) MinWorkers() *gomock.Call

MinWorkers indicates an expected call of MinWorkers.

func (*MockWorkerPoolMockRecorder) SetMaxWorkers added in v0.5.9

func (mr *MockWorkerPoolMockRecorder) SetMaxWorkers(arg0 any) *gomock.Call

SetMaxWorkers indicates an expected call of SetMaxWorkers.

func (*MockWorkerPoolMockRecorder) SetMinWorkers added in v0.5.9

func (mr *MockWorkerPoolMockRecorder) SetMinWorkers(arg0 any) *gomock.Call

SetMinWorkers indicates an expected call of SetMinWorkers.

func (*MockWorkerPoolMockRecorder) SetTaskFunction added in v0.5.9

func (mr *MockWorkerPoolMockRecorder) SetTaskFunction(arg0 any) *gomock.Call

SetTaskFunction indicates an expected call of SetTaskFunction.

func (*MockWorkerPoolMockRecorder) Start

func (mr *MockWorkerPoolMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockWorkerPoolMockRecorder) Stop

Stop indicates an expected call of Stop.

func (*MockWorkerPoolMockRecorder) Submit

func (mr *MockWorkerPoolMockRecorder) Submit(arg0 any) *gomock.Call

Submit indicates an expected call of Submit.

func (*MockWorkerPoolMockRecorder) WorkerCount

func (mr *MockWorkerPoolMockRecorder) WorkerCount() *gomock.Call

WorkerCount indicates an expected call of WorkerCount.

Jump to

Keyboard shortcuts

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