Documentation ¶
Index ¶
- func ExtractLocalDC(ctx context.Context) string
- func IsIdempotent(ctx context.Context) bool
- func IsNestedCall(ctx context.Context) bool
- func MarkRetryCall(ctx context.Context) context.Context
- func ValueOnly(ctx context.Context) context.Context
- func WithCancel(ctx context.Context) (context.Context, context.CancelFunc)
- func WithDone(parent context.Context, done <-chan struct{}) (context.Context, context.CancelFunc)
- func WithIdempotent(ctx context.Context, idempotent bool) context.Context
- func WithLocalDC(ctx context.Context, dc string) context.Context
- func WithTimeout(ctx context.Context, t time.Duration) (context.Context, context.CancelFunc)
- type CancelsGuard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractLocalDC ¶
func IsIdempotent ¶
func IsNestedCall ¶
func WithCancel ¶
func WithTimeout ¶
Types ¶
type CancelsGuard ¶
type CancelsGuard struct {
// contains filtered or unexported fields
}
func NewCancelsGuard ¶
func NewCancelsGuard() *CancelsGuard
func (*CancelsGuard) Cancel ¶
func (g *CancelsGuard) Cancel()
func (*CancelsGuard) WithCancel ¶
func (g *CancelsGuard) WithCancel(ctx context.Context) (context.Context, context.CancelFunc)
Click to show internal directories.
Click to hide internal directories.