Documentation ¶
Index ¶
- func ExtractLocalDC(ctx context.Context) string
- func IsIdempotent(ctx context.Context) bool
- func WithIdempotent(ctx context.Context, idempotent bool) context.Context
- func WithLocalDC(ctx context.Context, dc string) context.Context
- func WithoutDeadline(ctx context.Context) context.Context
- type CancelErrFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractLocalDC ¶ added in v3.42.6
func IsIdempotent ¶ added in v3.42.0
func WithIdempotent ¶ added in v3.42.0
func WithLocalDC ¶ added in v3.42.6
Types ¶
type CancelErrFunc ¶
type CancelErrFunc func(err error)
CancelErrFunc use for cancel with wrap with specific error if err == nil CancelErrFunc will panic for prevent call cancel, then ctx.Err() == nil
func WithErrCancel ¶
func WithErrCancel(ctx context.Context) (resCtx context.Context, cancel CancelErrFunc)
Click to show internal directories.
Click to hide internal directories.