datastore

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSeparatingContextDatastoreProxy added in v1.25.0

func NewSeparatingContextDatastoreProxy(d datastore.Datastore) datastore.Datastore

NewSeparatingContextDatastoreProxy severs any timeouts in the context being passed to the datastore and only retains tracing metadata.

This is useful for datastores that do not want to close connections when a cancel or deadline occurs.

func SeparateContextWithTracing

func SeparateContextWithTracing(ctx context.Context) context.Context

SeparateContextWithTracing is a utility method which allows for severing the context between grpc and the datastore to prevent context cancellation from killing database connections that should otherwise go back to the connection pool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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