middleware

package
v0.0.0-...-0c44e78 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrTokenExpired = "token expired"
)

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

Types

type JWTAuthMW

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

func NewJWTAuthMW

func NewJWTAuthMW(authSvc grpc.AuthService, logger logger.Logger) *JWTAuthMW

func (*JWTAuthMW) AuthMiddleware

func (m *JWTAuthMW) AuthMiddleware() gin.HandlerFunc

Jump to

Keyboard shortcuts

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