authed

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAdmin

func IsAdmin(c *gin.Context) bool

func RoleCookieSet

func RoleCookieSet(c *gin.Context, token string, expireSec int)

func RoleSet

func RoleSet(c *gin.Context, roles []string)

func TokenCookieGet

func TokenCookieGet(c *gin.Context) string

func TokenCookieSet

func TokenCookieSet(c *gin.Context, token string, expireSec int)

func UidGet

func UidGet(c *gin.Context) int64

func UidSet

func UidSet(c *gin.Context, uid int64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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