proxy

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCachingDatastoreProxy added in v1.8.0

func NewCachingDatastoreProxy(
	delegate datastore.Datastore,
	cacheConfig *cache.Config,
) (datastore.Datastore, error)

NewCachingDatastoreProxy creates a new datastore proxy which caches namespace definitions that are loaded at specific datastore revisions.

func NewHedgingProxy added in v1.1.0

func NewHedgingProxy(
	delegate datastore.Datastore,
	initialSlowRequestThreshold time.Duration,
	maxSampleCount uint64,
	hedgingQuantile float64,
) datastore.Datastore

NewHedgingProxy creates a proxy which performs request hedging on read operations according to the specified config.

func NewReadonlyDatastore

func NewReadonlyDatastore(delegate datastore.Datastore) datastore.Datastore

NewReadonlyDatastore creates a proxy which disables write operations to a downstream delegate datastore.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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