worker_client

package
v0.10.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 11 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_client is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueuePublisher

func QueuePublisher(ctx context.Context, queuesProvider queues.Provider) (queues.QueueProducer, error)

Types

type EventWithOrgId

type EventWithOrgId struct {
	OrgId uuid.UUID `json:"orgId"`
	Event api.Event `json:"event"`
}

type MockWorkerClient

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

MockWorkerClient is a mock of WorkerClient interface.

func NewMockWorkerClient

func NewMockWorkerClient(ctrl *gomock.Controller) *MockWorkerClient

NewMockWorkerClient creates a new mock instance.

func (*MockWorkerClient) EXPECT

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

func (*MockWorkerClient) EmitEvent

func (m *MockWorkerClient) EmitEvent(ctx context.Context, orgId uuid.UUID, event *v1alpha1.Event)

EmitEvent mocks base method.

type MockWorkerClientMockRecorder

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

MockWorkerClientMockRecorder is the mock recorder for MockWorkerClient.

func (*MockWorkerClientMockRecorder) EmitEvent

func (mr *MockWorkerClientMockRecorder) EmitEvent(ctx, orgId, event any) *gomock.Call

EmitEvent indicates an expected call of EmitEvent.

type WorkerClient

type WorkerClient interface {
	EmitEvent(ctx context.Context, orgId uuid.UUID, event *api.Event)
}

func NewWorkerClient

func NewWorkerClient(publisher queues.QueueProducer, log logrus.FieldLogger) WorkerClient

Jump to

Keyboard shortcuts

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