middleware

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MerchantHeader      = "X-Merchant"
	UserHeader          = "X-User"
	ClientIDHeader      = "X-Client-Id"
	IPHeader            = "X-User-Ip"
	FingerprintHeader   = "X-Fingerprint"
	SessionIDHeader     = "X-Session-Id"
	AuthorizationHeader = "Authorization"
)
View Source
const UnauthorizedErrCode = http.StatusUnauthorized

Variables

This section is empty.

Functions

func AuthOnly

func AuthOnly() gin.HandlerFunc

func ContentType

func ContentType() gin.HandlerFunc

func ContentTypeV2

func ContentTypeV2() gin.HandlerFunc

func ParseHeaders

func ParseHeaders(ctx *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