middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Access

func Access() gin.HandlerFunc

func Cors

func Cors() gin.HandlerFunc

func Limit

func Limit(limitKey string, duration time.Duration) gin.HandlerFunc

func Metrics

func Metrics() gin.HandlerFunc

func Recover

func Recover() gin.HandlerFunc

func Session

func Session() gin.HandlerFunc

Types

type SessionDetail

type SessionDetail struct {
	ID        types.ID `json:"id"`        //用户ID
	NickName  string   `json:"nickName"`  //用户昵称
	HeadPhoto string   `json:"headPhoto"` //用户头像
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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