package
0.0.0-20241110113514-99809898f0d6
Repository: https://github.com/ritoon/eip.git
Documentation: pkg.go.dev

# Functions

AuthorizedMimeType check if the mimetype is authorized for the request body.
GetCache is a function to get cache from redis and set cache to redis if not found.
NewJWT is a function to create new jwt token with uuidUser and email.
RateLimitUser rate limit by user id.
ValidateJwt is a middleware to validate jwt token from Authorization header.

# Structs

CacheContext is a struct to store cache context body is a buffer to store response body ResponseWriter is a gin.ResponseWriter from gin.Context.
CustomClaims is a struct to define jwt token claims with UUIDUser, Email and AccessLevel fields.
JWTResponse is a struct to define jwt token response with jwt field.