middleware

package
v0.0.0-...-f7471f1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTMiddleware

type JWTMiddleware struct {
	// contains filtered or unexported fields
}

JWTMiddleware is the JWT token validation middleware

func NewAuthMiddleware

func NewAuthMiddleware() (*JWTMiddleware, error)

NewAuthMiddleware returns a new middleware for JWT authentication

func (*JWTMiddleware) HandlerFunc

func (m *JWTMiddleware) HandlerFunc() gin.HandlerFunc

HandlerFunc returns the HanderFunc.

Jump to

Keyboard shortcuts

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