Documentation ¶
Index ¶
- func NewHedgingProxy(delegate datastore.Datastore, initialSlowRequestThreshold time.Duration, ...) datastore.Datastore
- func NewMappingProxy(delegate datastore.Datastore, mapper namespace.Mapper, ...) datastore.Datastore
- func NewReadonlyDatastore(delegate datastore.Datastore) datastore.Datastore
- type MapperFunc
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
NewHedgingProxy creates a proxy which performs request hedging on read operations according to the specified config.
Types ¶
type MapperFunc ¶
MapperFunc is used to translate ObjectTypes into another form before interacting with a datastore.
Click to show internal directories.
Click to hide internal directories.