Documentation ¶
Overview ¶
Package o11ygin contains middleware for the Gin router.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientCancelled ¶
func ClientCancelled() gin.HandlerFunc
ClientCancelled is a gin middleware that will trap a request context cancellation and return a 499 (a.la. nginx). If the response has already been written to, for example setting a status code, then that code will be honoured.
func Middleware ¶
func Middleware(provider o11y.Provider, serverName string, queryParams map[string]struct{}) gin.HandlerFunc
Middleware for Gin router
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.