sdk

package
v1.24.0-m3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package sdk is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	// PreferProtoDataConverter is like the default data converter defined in the SDK, except
	// that it prefers encoding proto messages with the binary encoding instead of json.
	PreferProtoDataConverter = converter.NewCompositeDataConverter(
		converter.NewNilPayloadConverter(),
		converter.NewByteSlicePayloadConverter(),

		newProtoPayloadConverter(),
		converter.NewProtoJSONPayloadConverter(),
		converter.NewJSONPayloadConverter(),
	)
)

Functions

func NewClientFactory

func NewClientFactory(
	hostPort string,
	tlsConfig *tls.Config,
	metricsHandler metrics.Handler,
	logger log.Logger,
	stickyCacheSize dynamicconfig.IntPropertyFn,
) *clientFactory

Types

type ClientFactory

type ClientFactory interface {
	// options must include Namespace and should not include: HostPort, ConnectionOptions,
	// MetricsHandler, or Logger (they will be overwritten)
	NewClient(options sdkclient.Options) sdkclient.Client
	GetSystemClient() sdkclient.Client
	NewWorker(client sdkclient.Client, taskQueue string, options sdkworker.Options) sdkworker.Worker
}

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.Handler) *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() client.Client

GetSystemClient mocks base method.

func (*MockClientFactory) NewClient

func (m *MockClientFactory) NewClient(options client.Options) client.Client

NewClient mocks base method.

func (*MockClientFactory) NewWorker added in v1.20.0

func (m *MockClientFactory) NewWorker(client client.Client, taskQueue string, options worker.Options) worker.Worker

NewWorker 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() *gomock.Call

GetSystemClient indicates an expected call of GetSystemClient.

func (*MockClientFactoryMockRecorder) NewClient

func (mr *MockClientFactoryMockRecorder) NewClient(options interface{}) *gomock.Call

NewClient indicates an expected call of NewClient.

func (*MockClientFactoryMockRecorder) NewWorker added in v1.20.0

func (mr *MockClientFactoryMockRecorder) NewWorker(client, taskQueue, options interface{}) *gomock.Call

NewWorker indicates an expected call of NewWorker.

Jump to

Keyboard shortcuts

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