auth

package
v0.0.2-0...-18890bd Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoutes

func ApplyRoutes(r *gin.RouterGroup)

ApplyRoutes applies router to the gin Engine

func JwtNew

func JwtNew() *jwt.HMACSHA

Types

type CustomPayload

type CustomPayload struct {
	jwt.Payload
	UserName string `json:"foo,omitempty"`
}

type Token

type Token struct {
	UserName string `json:"user" binding:"required"`
	Token    string `json:"token" binding:"required"`
}

Jump to

Keyboard shortcuts

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