api

package
v0.0.0-...-b11b111 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthRequired

func AuthRequired(context *gin.Context)

validate JWT

func GetAuth

func GetAuth(context *gin.Context)

func GetHome

func GetHome(context *gin.Context)

func GetPing

func GetPing(context *gin.Context)

func GetResource

func GetResource(context *gin.Context)

Types

type Claims

type Claims struct {
	Account string `json:"account"`
	Role    string `json:"role"`
	jwt.StandardClaims
}

custom claims

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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