sdk

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package sdk is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(sdkSystemClientProvider),
)

Functions

func NewClientFactory

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

Types

type ClientFactory

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

type MetricsHandler added in v1.15.0

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

func NewMetricHandler added in v1.15.0

func NewMetricHandler(scope metrics.UserScope) *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) NewClient

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

NewClient mocks base method.

func (*MockClientFactory) NewSystemClient

func (m *MockClientFactory) NewSystemClient(logger log.Logger) (client.Client, error)

NewSystemClient mocks base method.

type MockClientFactoryMockRecorder

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

MockClientFactoryMockRecorder is the mock recorder for MockClientFactory.

func (*MockClientFactoryMockRecorder) NewClient

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

NewClient indicates an expected call of NewClient.

func (*MockClientFactoryMockRecorder) NewSystemClient

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

NewSystemClient indicates an expected call of NewSystemClient.

Jump to

Keyboard shortcuts

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