Documentation ¶
Overview ¶
Package mock_client is a generated GoMock package.
Index ¶
- Constants
- Variables
- type MockVersionCheckerMockRecorder
- func (mr *MockVersionCheckerMockRecorder) ClientSupported(ctx, enableClientVersionCheck interface{}) *gomock.Call
- func (mr *MockVersionCheckerMockRecorder) SupportsConsistentQuery(clientImpl, clientFeatureVersion interface{}) *gomock.Call
- func (mr *MockVersionCheckerMockRecorder) SupportsRawHistoryQuery(clientImpl, clientFeatureVersion interface{}) *gomock.Call
- func (mr *MockVersionCheckerMockRecorder) SupportsStickyQuery(clientImpl, clientFeatureVersion interface{}) *gomock.Call
- type VersionChecker
- type VersionCheckerMock
- func (m *VersionCheckerMock) ClientSupported(ctx context.Context, enableClientVersionCheck bool) error
- func (m *VersionCheckerMock) EXPECT() *MockVersionCheckerMockRecorder
- func (m *VersionCheckerMock) SupportsConsistentQuery(clientImpl, clientFeatureVersion string) error
- func (m *VersionCheckerMock) SupportsRawHistoryQuery(clientImpl, clientFeatureVersion string) error
- func (m *VersionCheckerMock) SupportsStickyQuery(clientImpl, clientFeatureVersion string) error
Constants ¶
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 ¶
var ( // ErrUnknownFeature indicates that requested feature is not known by version checker ErrUnknownFeature = &types.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
func (m *VersionCheckerMock) EXPECT() *MockVersionCheckerMockRecorder
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