worker

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 4 Imported by: 0

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