Documentation ¶
Index ¶
- func NewCachingDatastoreProxy(delegate datastore.Datastore, cacheConfig *cache.Config) (datastore.Datastore, error)
- func NewHedgingProxy(delegate datastore.Datastore, initialSlowRequestThreshold time.Duration, ...) datastore.Datastore
- func NewReadonlyDatastore(delegate datastore.Datastore) datastore.Datastore
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.