middleware

package
v0.0.0-...-4f56fcc Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() fx.Option

func NewCorsMiddleware

func NewCorsMiddleware() gin.HandlerFunc

NewCorsMiddleware cria e retorna um novo middleware para lidar com CORS.

Types

type AuthMiddleware

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

func (*AuthMiddleware) Authorization

func (am *AuthMiddleware) Authorization() gin.HandlerFunc

Authorization é um middleware para autenticação JWT. Ele interrompe a requisição se o token JWT não for válido.

Jump to

Keyboard shortcuts

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