extend

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

Intro

ExtendedContext allows grafting two contexts together:

  • One for cancellation/timeout/deadline
  • One for Values

Uses

When retrying a GRPC call, the original timers may be either expired or too short, but the Values contained in the original context may still be relevant.

Documentation

Overview

Package extend allows you to extend a context with values from another context

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithValuesFromContext

func WithValuesFromContext(parent, valuesContext context.Context) context.Context

WithValuesFromContext - creates a child context with the Values from valuesContext rather than the parent

Types

This section is empty.

Jump to

Keyboard shortcuts

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