Documentation ¶
Index ¶
- func NewHedgingProxy(delegate datastore.Datastore, initialSlowRequestThreshold time.Duration, ...) (datastore.Datastore, error)
- func NewObservableDatastoreProxy(d datastore.Datastore) datastore.Datastore
- func NewReadonlyDatastore(delegate datastore.Datastore) datastore.Datastore
- func NewSingleflightDatastoreProxy(d datastore.Datastore) datastore.Datastore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHedgingProxy ¶ added in v1.1.0
func NewHedgingProxy( delegate datastore.Datastore, initialSlowRequestThreshold time.Duration, maxSampleCount uint64, hedgingQuantile float64, ) (datastore.Datastore, error)
NewHedgingProxy creates a proxy which performs request hedging on read operations according to the specified config.
func NewObservableDatastoreProxy ¶ added in v1.14.0
NewObservableDatastoreProxy creates a new datastore proxy which adds tracing and metrics to the datastore.
func NewReadonlyDatastore ¶
NewReadonlyDatastore creates a proxy which disables write operations to a downstream delegate datastore.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.