package
0.0.0-20240912095656-523bf53d617e
Repository: https://github.com/don-nv/go-dpkg.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
New - If resulting context has no go id, WithNewGoID gets applied; */.
NewTTL - is the same as New, but returns context with a limited time-to-live.
OptionTTLWithC - is the same as WithTTLC, but an option.
OptionTTLWithOSCancel - is the same as TTLWithOSCancel, but an TTLOption.
No description provided by the author
OptionWithGoID - is the same as WithGoID, but an Option.
OptionWithNewGoID - is the same as WithNewGoID, but an Option.
OptionWithNewXRequestID - is the same as WithNewXRequestID, but an Option.
OptionWithOSCancel - is the same as OptionTTLWithOSCancel, but discards cancel func.
OptionWithXRequestID - is the same as WithXRequestID, but an Option.
Timeout - returns [ctx] Timeout, a duration relative to current time before, after [ctx] expires.
TTLWithOSCancel - creates [ctx] child with a limited time-to-live dependent on os.Interrupt and os.Kill signals.
WithGoID - creates 'ctx' child, adds respective value and returns it.
WithNewGoID - creates 'ctx' child, adds respective value and returns it.
WithNewXRequestID - creates 'ctx' child, adds respective value and returns it.
WithOptions - applies 'options' if any to the 'ctx' and returns the latest child, else returns unmodified 'ctx'.
WithoutCancel - is a regular context.WithoutCancel wraparound.
WithTTLC - creates [ctx] child and returns it.
WithTTLCancel - is a regular context.WithCancel wraparound.
WithTTLOptions - applies 'options' if any to the 'ctx' and returns the latest child, else returns cancellable 'ctx' child.
WithTTLTimeout - is a regular context.WithTimeout wraparound.
WithXRequestID - creates 'ctx' child, adds respective value and returns it.
No description provided by the author

# Type aliases

No description provided by the author
TTLOption - options context with time-to-live condition.