middleware

package
v0.0.0-...-911e263 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewJwtRepository

func NewJwtRepository() port.JwtRepository

Types

type CorsInteractor

type CorsInteractor struct {
}

func NewCorsInteractor

func NewCorsInteractor() *CorsInteractor

func (*CorsInteractor) CorsMiddleware

func (interactor *CorsInteractor) CorsMiddleware() gin.HandlerFunc

type JwtInteractor

type JwtInteractor struct {
	JwtRepo  port.JwtRepository
	UserRepo port.UserPort
	// contains filtered or unexported fields
}

func NewJwtInteractor

func NewJwtInteractor(jwtRepo port.JwtRepository, userRepo port.UserPort, userAuthRepo port.UserAuthPort, loggerRepo port.LoggerPort) *JwtInteractor

func (*JwtInteractor) JwtMiddleware

func (interactor *JwtInteractor) JwtMiddleware() gin.HandlerFunc

func (*JwtInteractor) PrintDebug

func (interactor *JwtInteractor) PrintDebug(num string, group string, message string)

func (*JwtInteractor) PrintError

func (interactor *JwtInteractor) PrintError(num string, group string, message string)

func (*JwtInteractor) PrintInfo

func (interactor *JwtInteractor) PrintInfo(num string, group string, message string)

Jump to

Keyboard shortcuts

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