o11ygin

package
v1.0.13125-18d62e5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 9 Imported by: 0

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 Golden

func Golden(p o11y.Provider) gin.HandlerFunc

func Middleware

func Middleware(provider o11y.Provider, serverName string, queryParams map[string]struct{}) gin.HandlerFunc

Middleware for Gin router

func Recovery

func Recovery() func(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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