worker

package
v1.4.1-prerelease21 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package worker is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWorker

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

MockWorker is a mock of Worker interface.

func NewMockWorker

func NewMockWorker(ctrl *gomock.Controller) *MockWorker

NewMockWorker creates a new mock instance.

func (*MockWorker) EXPECT

func (m *MockWorker) EXPECT() *MockWorkerMockRecorder

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

func (*MockWorker) GetRegisteredActivities added in v1.4.1

func (m *MockWorker) GetRegisteredActivities() []activity.RegistryInfo

GetRegisteredActivities mocks base method.

func (*MockWorker) GetRegisteredWorkflows added in v1.4.1

func (m *MockWorker) GetRegisteredWorkflows() []workflow.RegistryInfo

GetRegisteredWorkflows mocks base method.

func (*MockWorker) RegisterActivity

func (m *MockWorker) RegisterActivity(arg0 any)

RegisterActivity mocks base method.

func (*MockWorker) RegisterActivityWithOptions

func (m *MockWorker) RegisterActivityWithOptions(arg0 any, options activity.RegisterOptions)

RegisterActivityWithOptions mocks base method.

func (*MockWorker) RegisterWorkflow

func (m *MockWorker) RegisterWorkflow(arg0 any)

RegisterWorkflow mocks base method.

func (*MockWorker) RegisterWorkflowWithOptions

func (m *MockWorker) RegisterWorkflowWithOptions(arg0 any, options workflow.RegisterOptions)

RegisterWorkflowWithOptions mocks base method.

func (*MockWorker) Run

func (m *MockWorker) Run() error

Run mocks base method.

func (*MockWorker) Start

func (m *MockWorker) Start() error

Start mocks base method.

func (*MockWorker) Stop

func (m *MockWorker) Stop()

Stop mocks base method.

type MockWorkerMockRecorder

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

MockWorkerMockRecorder is the mock recorder for MockWorker.

func (*MockWorkerMockRecorder) GetRegisteredActivities added in v1.4.1

func (mr *MockWorkerMockRecorder) GetRegisteredActivities() *gomock.Call

GetRegisteredActivities indicates an expected call of GetRegisteredActivities.

func (*MockWorkerMockRecorder) GetRegisteredWorkflows added in v1.4.1

func (mr *MockWorkerMockRecorder) GetRegisteredWorkflows() *gomock.Call

GetRegisteredWorkflows indicates an expected call of GetRegisteredWorkflows.

func (*MockWorkerMockRecorder) RegisterActivity

func (mr *MockWorkerMockRecorder) RegisterActivity(arg0 any) *gomock.Call

RegisterActivity indicates an expected call of RegisterActivity.

func (*MockWorkerMockRecorder) RegisterActivityWithOptions

func (mr *MockWorkerMockRecorder) RegisterActivityWithOptions(arg0, options any) *gomock.Call

RegisterActivityWithOptions indicates an expected call of RegisterActivityWithOptions.

func (*MockWorkerMockRecorder) RegisterWorkflow

func (mr *MockWorkerMockRecorder) RegisterWorkflow(arg0 any) *gomock.Call

RegisterWorkflow indicates an expected call of RegisterWorkflow.

func (*MockWorkerMockRecorder) RegisterWorkflowWithOptions

func (mr *MockWorkerMockRecorder) RegisterWorkflowWithOptions(arg0, options any) *gomock.Call

RegisterWorkflowWithOptions indicates an expected call of RegisterWorkflowWithOptions.

func (*MockWorkerMockRecorder) Run

func (mr *MockWorkerMockRecorder) Run() *gomock.Call

Run indicates an expected call of Run.

func (*MockWorkerMockRecorder) Start

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

Start indicates an expected call of Start.

func (*MockWorkerMockRecorder) Stop

func (mr *MockWorkerMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

type Worker

type Worker interface {
	RegisterActivity(activity interface{})
	RegisterActivityWithOptions(activity interface{}, options activity.RegisterOptions)
	GetRegisteredActivities() []activity.RegistryInfo
	RegisterWorkflow(workflow interface{})
	RegisterWorkflowWithOptions(workflow interface{}, options workflow.RegisterOptions)
	GetRegisteredWorkflows() []workflow.RegistryInfo
	Start() error
	Stop()
	Run() error
}

Jump to

Keyboard shortcuts

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