Documentation ¶
Overview ¶
Package sdk is a generated GoMock package.
Index ¶
- Variables
- func NewClientFactory(hostPort string, tlsConfig *tls.Config, metricsHandler metrics.MetricsHandler, ...) *clientFactory
- func NewWorkerFactory() *workerFactory
- type ClientFactory
- type MetricsHandler
- type MockClientFactory
- type MockClientFactoryMockRecorder
- type MockWorkerFactory
- type MockWorkerFactoryMockRecorder
- type WorkerFactory
Constants ¶
This section is empty.
Variables ¶
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 NewWorkerFactory ¶ added in v1.17.0
func NewWorkerFactory() *workerFactory
Types ¶
type ClientFactory ¶
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 (m *MetricsHandler) Gauge(name string) sdkclient.MetricsGauge
func (*MetricsHandler) Timer ¶ added in v1.15.0
func (m *MetricsHandler) Timer(name string) sdkclient.MetricsTimer
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 ¶
func (m *MockClientFactory) EXPECT() *MockClientFactoryMockRecorder
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.
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
func (m *MockWorkerFactory) EXPECT() *MockWorkerFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.