utils

package
v0.0.0-...-7c6b4a0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthOnly

func AuthOnly(c *gin.Context)

func GenerateJWT

func GenerateJWT(claims jwt.Claims) (string, error)

func GenerateRandomString

func GenerateRandomString(length int) string

func HasOpenIDScope

func HasOpenIDScope(scope string) bool

func LogIP

func LogIP(c *gin.Context)

func ParseUserAgent

func ParseUserAgent(c *gin.Context) datatransfers.UserAgent

func SuperuserOnly

func SuperuserOnly(c *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