xcontext

package
v3.72.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractLocalDC added in v3.42.6

func ExtractLocalDC(ctx context.Context) string

func IsIdempotent added in v3.42.0

func IsIdempotent(ctx context.Context) bool

func IsNestedCall added in v3.54.2

func IsNestedCall(ctx context.Context) bool

func MarkRetryCall added in v3.54.2

func MarkRetryCall(ctx context.Context) context.Context

func ValueOnly added in v3.59.0

func ValueOnly(ctx context.Context) context.Context

ValueOnly helps to clear parent context from deadlines/cancels

func WithCancel added in v3.46.1

func WithCancel(ctx context.Context) (context.Context, context.CancelFunc)

func WithDone added in v3.58.0

func WithDone(parent context.Context, done <-chan struct{}) (context.Context, context.CancelFunc)

func WithIdempotent added in v3.42.0

func WithIdempotent(ctx context.Context, idempotent bool) context.Context

func WithLocalDC added in v3.42.6

func WithLocalDC(ctx context.Context, dc string) context.Context

func WithTimeout added in v3.46.1

Types

type CancelsGuard added in v3.64.0

type CancelsGuard struct {
	// contains filtered or unexported fields
}

func NewCancelsGuard added in v3.64.0

func NewCancelsGuard() *CancelsGuard

func (*CancelsGuard) Cancel added in v3.64.0

func (g *CancelsGuard) Cancel()

func (*CancelsGuard) WithCancel added in v3.66.2

Jump to

Keyboard shortcuts

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