middleware

package
v0.0.0-...-68b20d9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorrelationHeader

func CorrelationHeader() gin.HandlerFunc

CorrelationHeader

func Cors

func Cors() gin.HandlerFunc

Cors 跨域

func FromContext

func FromContext(ctx context.Context) string

func NewId

func NewId() string

func WithCorrelationId

func WithCorrelationId(ctx context.Context) context.Context

Types

type CustomClaims

type CustomClaims struct {
	ID       uint
	Username string
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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