middleware

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

func CacheMiddleware

func CacheMiddleware(expiration time.Duration, handle gin.HandlerFunc) gin.HandlerFunc

CacheMiddleware encapsulates a gin handler function and caches the model with an expiration time.

func CheckReverseProxy

func CheckReverseProxy(c *gin.Context)

CheckReverseProxy removes untrusted forwarded HTTP headers if gin.reverse_proxy is defined

func Prometheus

func Prometheus() gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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