helper

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultQuery

func DefaultQuery(allowStale bool) *api.QueryOptions

func DefaultWriteOptions added in v0.24.0

func DefaultWriteOptions() *api.WriteOptions

func NewDatacenterClient

func NewDatacenterClient(c *config.Config, dc string) (*api.Client, error)

NewDatacenterClient ...

func QueryChanged

func QueryChanged(q *api.QueryOptions, meta *api.QueryMeta) bool

QueryChanged will return wether the query changed, comparing the WaitIndex vs LastIndex If the query has changed, the QueryMeta is updated with the new WaitIndex value of LastIndex, in preparation for the new usage in the long polling API

Types

This section is empty.

Jump to

Keyboard shortcuts

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