client

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 2 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

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