Documentation ¶
Index ¶
- Variables
- func ClaimToken(ctx echo.Context) entity.UserClaimsResponse
- func GenerateToken(registry entity.User) (t string, err error)
- func InitMiddlewares(e *echo.Echo)
- func IsPrivate(role string, private bool) bool
- func IsTokenExpired(t time.Time) bool
- func ParseTokenJWT(tokenString string) (userClaims entity.UserClaimsResponse, err error)
- func TokenValidationMiddleware(private bool) echo.MiddlewareFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Authorization = "Authorization"
)
Functions ¶
func ClaimToken ¶
func ClaimToken(ctx echo.Context) entity.UserClaimsResponse
func InitMiddlewares ¶
func InitMiddlewares(e *echo.Echo)
func IsTokenExpired ¶
func ParseTokenJWT ¶
func ParseTokenJWT(tokenString string) (userClaims entity.UserClaimsResponse, err error)
func TokenValidationMiddleware ¶
func TokenValidationMiddleware(private bool) echo.MiddlewareFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.