middleware

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Before

func Before() gin.HandlerFunc

Before 中间件拦截器-before

func PrintRequestPayload

func PrintRequestPayload() gin.HandlerFunc

PrintRequestPayload 打印请求载荷

func PrometheusExporter

func PrometheusExporter() gin.HandlerFunc

PrometheusExporter 导出Prometheus指标

func WithCors

func WithCors(headers map[string]string) gin.HandlerFunc

WithCors 允许浏览器跨域请求

Types

This section is empty.

Jump to

Keyboard shortcuts

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