Versions in this module Expand all Collapse all v4 v4.0.0 Jul 11, 2026 Changes in this version + var ErrHardTimeoutCaptureLimitExceeded = errors.New("hard timeout response capture limit exceeded") + type HardTimeout struct + EventHooks *HardTimeoutEventHooks + MaxCaptureBytes int64 + Timeout time.Duration + func NewHard(opts Options) (*HardTimeout, error) + func (m *HardTimeout) Handler(next http.Handler) http.Handler + func (m *HardTimeout) Middleware() func(http.Handler) http.Handler + type HardTimeoutEvent struct + CaptureLimit int64 + CaptureOverflow bool + Duration time.Duration + Method string + Outcome HardTimeoutOutcome + Panicked bool + Status int + TimedOut bool + Timeout time.Duration + type HardTimeoutEventHooks struct + OnEvent func(HardTimeoutEvent) + type HardTimeoutOutcome string + const HardTimeoutOutcomeCaptureOverflow + const HardTimeoutOutcomePanic + const HardTimeoutOutcomeTimeout + type Middleware = Propagator + type Options struct + EventHooks *HardTimeoutEventHooks + MaxCaptureBytes int64 + Timeout time.Duration + type Propagator struct + Timeout time.Duration + func New(opts Options) (*Propagator, error) + func NewPropagator(opts Options) (*Propagator, error) + func (m *Propagator) Handler(next http.Handler) http.Handler + func (m *Propagator) Middleware() func(http.Handler) http.Handler Other modules containing this package github.com/aatuh/api-toolkit github.com/aatuh/api-toolkit/v2 github.com/aatuh/api-toolkit/v3