middleware

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: GPL-3.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthAdmin

func AuthAdmin(c *gin.Context)

func AuthCtx

func AuthCtx(c *gin.Context)

func JWTAuth

func JWTAuth(c *gin.Context)

JWTMAuth check if authed and set uid to context

func PushTokenStr

func PushTokenStr(c *gin.Context, tokenStr string)

PushTokenStr 推送token到客户端

func SetToken

func SetToken(c *gin.Context, uid string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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