datastore

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSeparatingContextDatastoreProxy

func NewSeparatingContextDatastoreProxy(d datastore.Datastore) datastore.StrictReadDatastore

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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