worker

package
v1.3.2-prerelease06 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 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) RegisterActivity

func (m *MockWorker) RegisterActivity(activity any)

RegisterActivity mocks base method.

func (*MockWorker) RegisterActivityWithOptions

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

RegisterActivityWithOptions mocks base method.

func (*MockWorker) RegisterWorkflow

func (m *MockWorker) RegisterWorkflow(workflow any)

RegisterWorkflow mocks base method.

func (*MockWorker) RegisterWorkflowWithOptions

func (m *MockWorker) RegisterWorkflowWithOptions(workflow 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) RegisterActivity

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

RegisterActivity indicates an expected call of RegisterActivity.

func (*MockWorkerMockRecorder) RegisterActivityWithOptions

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

RegisterActivityWithOptions indicates an expected call of RegisterActivityWithOptions.

func (*MockWorkerMockRecorder) RegisterWorkflow

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

RegisterWorkflow indicates an expected call of RegisterWorkflow.

func (*MockWorkerMockRecorder) RegisterWorkflowWithOptions

func (mr *MockWorkerMockRecorder) RegisterWorkflowWithOptions(workflow, 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)
	RegisterWorkflow(workflow interface{})
	RegisterWorkflowWithOptions(workflow interface{}, options workflow.RegisterOptions)
	Start() error
	Stop()
	Run() error
}

Jump to

Keyboard shortcuts

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