sdk

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 15 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(),
		converter.NewProtoPayloadConverter(),
		converter.NewProtoJSONPayloadConverter(),
		converter.NewJSONPayloadConverter(),
	)
)

Functions

func NewClientFactory

func NewClientFactory(
	hostPort string,
	tlsConfig *tls.Config,
	metricsHandler metrics.MetricsHandler,
	logger log.Logger,
) *clientFactory

func NewWorkerFactory added in v1.17.0

func NewWorkerFactory() *workerFactory

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
}

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

GetSystemClient mocks base method.

func (*MockClientFactory) NewClient

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

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

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