sdk

package
v1.17.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package sdk is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientFactory

func NewClientFactory(hostPort string, tlsConfig *tls.Config, metricsHandler *MetricsHandler) *clientFactory

func NewWorkerFactory added in v1.17.0

func NewWorkerFactory() *workerFactory

Types

type ClientFactory

type ClientFactory interface {
	NewClient(namespaceName string, logger log.Logger) (sdkclient.Client, error)
	GetSystemClient(logger log.Logger) sdkclient.Client
}

type MetricsHandler added in v1.15.0

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

func NewMetricsHandler added in v1.17.0

func NewMetricsHandler(provider metrics.MetricsHandler) *MetricsHandler

func (*MetricsHandler) Counter added in v1.15.0

func (m *MetricsHandler) Counter(name string) sdkclient.MetricsCounter

func (*MetricsHandler) Gauge added in v1.15.0

func (*MetricsHandler) Timer added in v1.15.0

func (*MetricsHandler) WithTags added in v1.15.0

func (m *MetricsHandler) WithTags(tags map[string]string) sdkclient.MetricsHandler

type MockClientFactory

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

MockClientFactory is a mock of ClientFactory interface.

func NewMockClientFactory

func NewMockClientFactory(ctrl *gomock.Controller) *MockClientFactory

NewMockClientFactory creates a new mock instance.

func (*MockClientFactory) EXPECT

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

func (*MockClientFactory) GetSystemClient added in v1.16.0

func (m *MockClientFactory) GetSystemClient(logger log.Logger) client.Client

GetSystemClient mocks base method.

func (*MockClientFactory) NewClient

func (m *MockClientFactory) NewClient(namespaceName string, logger log.Logger) (client.Client, error)

NewClient mocks base method.

type MockClientFactoryMockRecorder

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

MockClientFactoryMockRecorder is the mock recorder for MockClientFactory.

func (*MockClientFactoryMockRecorder) GetSystemClient added in v1.16.0

func (mr *MockClientFactoryMockRecorder) GetSystemClient(logger interface{}) *gomock.Call

GetSystemClient indicates an expected call of GetSystemClient.

func (*MockClientFactoryMockRecorder) NewClient

func (mr *MockClientFactoryMockRecorder) NewClient(namespaceName, logger interface{}) *gomock.Call

NewClient indicates an expected call of NewClient.

type MockWorkerFactory added in v1.17.0

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

MockWorkerFactory is a mock of WorkerFactory interface.

func NewMockWorkerFactory added in v1.17.0

func NewMockWorkerFactory(ctrl *gomock.Controller) *MockWorkerFactory

NewMockWorkerFactory creates a new mock instance.

func (*MockWorkerFactory) EXPECT added in v1.17.0

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

func (*MockWorkerFactory) New added in v1.17.0

func (m *MockWorkerFactory) New(client client.Client, taskQueue string, options worker.Options) worker.Worker

New mocks base method.

type MockWorkerFactoryMockRecorder added in v1.17.0

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

MockWorkerFactoryMockRecorder is the mock recorder for MockWorkerFactory.

func (*MockWorkerFactoryMockRecorder) New added in v1.17.0

func (mr *MockWorkerFactoryMockRecorder) New(client, taskQueue, options interface{}) *gomock.Call

New indicates an expected call of New.

type WorkerFactory added in v1.17.0

type WorkerFactory interface {
	New(client sdkclient.Client, taskQueue string, options sdkworker.Options) sdkworker.Worker
}

Jump to

Keyboard shortcuts

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