Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInternalServerError will thow if the internal server error happen ErrInternalServerError = errors.New("Internal Server Error") // ErrNotFound wil thow if the requested item is not exists ErrorNotFound = errors.New("Your requested Item is not found") // ErrConflict willthow if the current action already exists ErrConflict = errors.New("Your Item already exist") // ErrBadParamInput will throw if the given request-body or param is not valid ErrBadParamInput = errors.New("Given Param is not valid") )
Functions ¶
func GenerateJwt ¶
func GetUserIDJWT ¶
func SHA256Encoder ¶
func TokenGenerator ¶
func TokenGenerator() string
Types ¶
type Claims ¶
type Claims struct { jwt.StandardClaims UserID int16 }
type GoMiddleware ¶
type GoMiddleware struct { }
func InitMiddleware ¶
func InitMiddleware() *GoMiddleware
func (*GoMiddleware) CORS ¶
func (m *GoMiddleware) CORS(next echo.HandlerFunc) echo.HandlerFunc
Click to show internal directories.
Click to hide internal directories.