contextex

package
v0.3.57 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransferBackground added in v0.3.0

func TransferBackground(ctx context.Context, keys ...any) context.Context

TransferBackground transfer kv from src context to background context

func TransferContext added in v0.3.0

func TransferContext(src, to context.Context, keys ...any) context.Context

TransferContext transfer kv from src context to target context

Types

type ContextKey

type ContextKey string
const (
	ElasticID ContextKey = "_aphrodite_es"
	DbTxID    ContextKey = "_aphrodite_dbtx"
)

func (ContextKey) ID

func (c ContextKey) ID(id string) ContextKey

Jump to

Keyboard shortcuts

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