contextutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValueContext

type ValueContext interface {
	Value(key interface{}) interface{}
}

ValueContext requires given contexts to only implements Value. This is particarily useful for functions that return attached values to a context without caring about other context functions.

This was implemented for more flexibility when given contexts slightly differ from the standard go context interface.

It is the case of Temporal workflow context. See: https://github.com/temporalio/temporal

Jump to

Keyboard shortcuts

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