helper

package
v0.0.0-...-32c792f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultQuery

func DefaultQuery(allowStale bool) *api.QueryOptions

func DefaultWriteOptions

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