middleware

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
}

func (Base) Cors

func (b Base) Cors() gin.HandlerFunc

Cors 开放所有接口的OPTIONS方法

func (Base) RealIP

func (b Base) RealIP(useCDN bool) gin.HandlerFunc

RealIP 获取真实IP

func (Base) SetGPC

func (b Base) SetGPC(e *gin.Engine) gin.HandlerFunc

SetGPC 设置响应头

Jump to

Keyboard shortcuts

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