client

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 8 Imported by: 9 modules, 15 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock_client is a generated GoMock package.

Index

Constants

View Source
const (
	// GoSDK is the header value for common.ClientImplHeaderName indicating a go sdk client
	GoSDK = "uber-go"
	// JavaSDK is the header value for common.ClientImplHeaderName indicating a java sdk client
	JavaSDK = "uber-java"
	// CLI is the header value for common.ClientImplHeaderName indicating a cli client
	CLI = "cli"

	// SupportedGoSDKVersion indicates the highest go sdk version server will accept requests from
	SupportedGoSDKVersion = "1.6.0"
	// SupportedJavaSDKVersion indicates the highest java sdk version server will accept requests from
	SupportedJavaSDKVersion = "1.6.0"
	// SupportedCLIVersion indicates the highest cli version server will accept requests from
	SupportedCLIVersion = "1.6.0"

	// StickyQueryUnknownImplConstraints indicates the minimum client version of an unknown client type which supports StickyQuery
	StickyQueryUnknownImplConstraints = "1.0.0"
	// GoWorkerStickyQueryVersion indicates the minimum client version of go worker which supports StickyQuery
	GoWorkerStickyQueryVersion = "1.0.0"
	// JavaWorkerStickyQueryVersion indicates the minimum client version of the java worker which supports StickyQuery
	JavaWorkerStickyQueryVersion = "1.0.0"
	// GoWorkerConsistentQueryVersion indicates the minimum client version of the go worker which supports ConsistentQuery
	GoWorkerConsistentQueryVersion = "1.5.0"
	// JavaWorkerRawHistoryQueryVersion indicates the minimum client version of the java worker which supports RawHistoryQuery
	JavaWorkerRawHistoryQueryVersion = "1.3.0"
	// GoWorkerRawHistoryQueryVersion indicates the minimum client version of the go worker which supports RawHistoryQuery
	GoWorkerRawHistoryQueryVersion = "1.6.0"
	// CLIRawHistoryQueryVersion indicates the minimum CLI version of the go worker which supports RawHistoryQuery
	// Note: cli uses go client feature version
	CLIRawHistoryQueryVersion = "1.6.0"
)

Variables

View Source
var (
	// ErrUnknownFeature indicates that requested feature is not known by version checker
	ErrUnknownFeature = &shared.BadRequestError{Message: "Unknown feature"}
)

Functions

This section is empty.

Types

type MockVersionCheckerMockRecorder added in v0.15.0

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

MockVersionCheckerMockRecorder is the mock recorder for VersionCheckerMock

func (*MockVersionCheckerMockRecorder) ClientSupported added in v0.15.0

func (mr *MockVersionCheckerMockRecorder) ClientSupported(ctx, enableClientVersionCheck interface{}) *gomock.Call

ClientSupported indicates an expected call of ClientSupported

func (*MockVersionCheckerMockRecorder) SupportsConsistentQuery added in v0.15.0

func (mr *MockVersionCheckerMockRecorder) SupportsConsistentQuery(clientImpl, clientFeatureVersion interface{}) *gomock.Call

SupportsConsistentQuery indicates an expected call of SupportsConsistentQuery

func (*MockVersionCheckerMockRecorder) SupportsRawHistoryQuery added in v0.15.0

func (mr *MockVersionCheckerMockRecorder) SupportsRawHistoryQuery(clientImpl, clientFeatureVersion interface{}) *gomock.Call

SupportsRawHistoryQuery indicates an expected call of SupportsRawHistoryQuery

func (*MockVersionCheckerMockRecorder) SupportsStickyQuery added in v0.15.0

func (mr *MockVersionCheckerMockRecorder) SupportsStickyQuery(clientImpl, clientFeatureVersion interface{}) *gomock.Call

SupportsStickyQuery indicates an expected call of SupportsStickyQuery

type VersionChecker added in v0.11.0

type VersionChecker interface {
	ClientSupported(ctx context.Context, enableClientVersionCheck bool) error

	SupportsStickyQuery(clientImpl string, clientFeatureVersion string) error
	SupportsConsistentQuery(clientImpl string, clientFeatureVersion string) error
	SupportsRawHistoryQuery(clientImpl string, clientFeatureVersion string) error
}

VersionChecker is used to check client/server compatibility and client's capabilities

func NewVersionChecker added in v0.11.0

func NewVersionChecker() VersionChecker

NewVersionChecker constructs a new VersionChecker

type VersionCheckerMock added in v0.15.0

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

VersionCheckerMock is a mock of VersionChecker interface

func NewMockVersionChecker added in v0.15.0

func NewMockVersionChecker(ctrl *gomock.Controller) *VersionCheckerMock

NewMockVersionChecker creates a new mock instance

func (*VersionCheckerMock) ClientSupported added in v0.15.0

func (m *VersionCheckerMock) ClientSupported(ctx context.Context, enableClientVersionCheck bool) error

ClientSupported mocks base method

func (*VersionCheckerMock) EXPECT added in v0.15.0

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

func (*VersionCheckerMock) SupportsConsistentQuery added in v0.15.0

func (m *VersionCheckerMock) SupportsConsistentQuery(clientImpl, clientFeatureVersion string) error

SupportsConsistentQuery mocks base method

func (*VersionCheckerMock) SupportsRawHistoryQuery added in v0.15.0

func (m *VersionCheckerMock) SupportsRawHistoryQuery(clientImpl, clientFeatureVersion string) error

SupportsRawHistoryQuery mocks base method

func (*VersionCheckerMock) SupportsStickyQuery added in v0.15.0

func (m *VersionCheckerMock) SupportsStickyQuery(clientImpl, clientFeatureVersion string) error

SupportsStickyQuery mocks base method

Jump to

Keyboard shortcuts

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