Documentation ¶
Index ¶
- func Deadline(fallback time.Duration, corrector func(time.Time, bool) time.Time) func(http.Handler) http.Handler
- func HardTimeout(timeout time.Duration) func(http.Handler) http.Handler
- func Timeout(fallback time.Duration, corrector func(time.Duration, bool) time.Duration) func(http.Handler) http.Handler
- func Tracer(buffer int, logger func(*tracer.Trace)) func(http.Handler) http.Handler
- type Stack
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deadline ¶
func Deadline( fallback time.Duration, corrector func(time.Time, bool) time.Time, ) func(http.Handler) http.Handler
Deadline returns the Middleware to inject a deadline timestamp into the request context.
func HardTimeout ¶ added in v0.0.16
HardTimeout returns the Middleware to inject the timeout duration into the request context. The difference between the method and the Timeout middleware is a more strict guarantee about the time execution.
Types ¶
Click to show internal directories.
Click to hide internal directories.