middleware

package
v0.0.0-...-9c0a888 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicJWTAuth

func BasicJWTAuth() gin.HandlerFunc

BasicJWTAuth auth token checker

func CreateToken

func CreateToken(userid uint32) (string, error)

CreateToken used to create JWT

Types

type Token

type Token struct {
	ID uint32 `json:"id"`
	jwt.StandardClaims
}

Token struct

Jump to

Keyboard shortcuts

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