ginutil

package
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortHandlerRecovery

func AbortHandlerRecovery() gin.HandlerFunc

AbortHandlerRecovery swallows http.ErrAbortHandler so expected client-abort proxy paths do not get logged as full panic recoveries by gin.Recovery.

func FindRequestStart added in v0.0.15

func FindRequestStart(c *gin.Context) (time.Time, bool)

FindRequestStart returns the request start recorded by RecordRequestStart.

func RecordRequestStart added in v0.0.15

func RecordRequestStart() gin.HandlerFunc

RecordRequestStart records the earliest in-process request time for downstream consumers.

func SetRequestStart added in v0.0.15

func SetRequestStart(c *gin.Context, startedAt time.Time)

SetRequestStart stores a request start while preserving time.Time's monotonic clock.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL