Documentation
¶
Index ¶
- func AuthMiddleware(authRepo repositories.AuthRepository) gin.HandlerFunc
- func GetUserFromContext(ctx context.Context) (*models.Auth, error)
- func LoggerMiddleware(logger *logger.Logger) gin.HandlerFunc
- func RequestLogger(logger *logger.Logger) gin.HandlerFunc
- func SetUserToContext(ctx context.Context, user *models.Auth) context.Context
- func ValidationMiddleware() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(authRepo repositories.AuthRepository) gin.HandlerFunc
func GetUserFromContext ¶
GetUserFromContext はコンテキストからユーザー情報を取得します.
func LoggerMiddleware ¶
func LoggerMiddleware(logger *logger.Logger) gin.HandlerFunc
func RequestLogger ¶
func RequestLogger(logger *logger.Logger) gin.HandlerFunc
func SetUserToContext ¶
func ValidationMiddleware ¶
func ValidationMiddleware() gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.