client

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 2 Imported by: 5

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

Jump to

Keyboard shortcuts

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