Documentation ¶
Index ¶
- Variables
- func AttachProfileMiddleware(db *sqlx.DB) echo.MiddlewareFunc
- func CACOnlyMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func EDIPIMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func IsApplicationAdmin(next echo.HandlerFunc) echo.HandlerFunc
- func IsProjectAdminMiddleware(db *sqlx.DB) echo.MiddlewareFunc
- func IsProjectMemberMiddleware(db *sqlx.DB) echo.MiddlewareFunc
- func JWT(isDisabled bool, skipIfKey bool) echo.MiddlewareFunc
- func JWTMock(isDisabled bool, skipIfKey bool) echo.MiddlewareFunc
- func KeyAuth(isDisabled bool, appKey string, h HashExtractor) echo.MiddlewareFunc
- type HashExtractor
Constants ¶
This section is empty.
Variables ¶
View Source
var CORS = middleware.CORS()
CORS is ready-to-go CORS middleware
View Source
var GZIP = middleware.GzipWithConfig(middleware.GzipConfig{Level: 5})
GZIP is ready-to-go GZIP middleware based on echo middleware
Functions ¶
func AttachProfileMiddleware ¶
AttachProfileID attaches ProfileID of user to context
func CACOnlyMiddleware ¶
func CACOnlyMiddleware(next echo.HandlerFunc) echo.HandlerFunc
func EDIPIMiddleware ¶
func EDIPIMiddleware(next echo.HandlerFunc) echo.HandlerFunc
EDIPIMiddleware attaches EDIPI (CAC) to Context Used for CAC-Only Routes
func IsApplicationAdmin ¶
func IsApplicationAdmin(next echo.HandlerFunc) echo.HandlerFunc
func KeyAuth ¶
func KeyAuth(isDisabled bool, appKey string, h HashExtractor) echo.MiddlewareFunc
KeyAuth returns a ready-to-go key auth middleware
Types ¶
type HashExtractor ¶
HashExtractor returns a hash (string) to be compared with user supplied key
Click to show internal directories.
Click to hide internal directories.