Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature interface {
SupportStickyQuery() bool
}
Feature provides information about client's capibility
type FeatureImpl ¶
type FeatureImpl struct {
// contains filtered or unexported fields
}
FeatureImpl is used for determining the client's capibility. This can be useful when service support a feature, while client does not, so we can use be backward comparible
func NewFeatureImpl ¶
func NewFeatureImpl(libVersion string, featureVersion string, lang string) *FeatureImpl
NewFeatureImpl make a new NewFeatureImpl libVersion and featureVersion, will be both of format MAJOR.MINOR.PATCH
func (*FeatureImpl) SupportConsistentQuery ¶ added in v0.9.0
func (feature *FeatureImpl) SupportConsistentQuery() bool
SupportConsistentQuery whether a client supports consistent query
func (*FeatureImpl) SupportStickyQuery ¶
func (feature *FeatureImpl) SupportStickyQuery() bool
SupportStickyQuery whether a client support sticky query
Click to show internal directories.
Click to hide internal directories.