middleware

package
v0.0.0-...-83330ae Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorUnableToVerifyToken = NewError.New("unable to authorize user", http.StatusUnauthorized)
)

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

Types

type Middleware

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

func New

func New(client *auth.Client, log *logrus.Logger) Middleware

func (Middleware) ApiKey

func (m Middleware) ApiKey() gin.HandlerFunc

func (Middleware) AuthJWT

func (m Middleware) AuthJWT() gin.HandlerFunc

Jump to

Keyboard shortcuts

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