Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIRestrictionMiddleware ¶
func APIRestrictionMiddleware(db *gorm.DB) gin.HandlerFunc
APIRestrictionMiddleware is used to restrict access to API calls
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
CORSMiddleware is used to load our CORS handling logic TODO: need to cleanup and restrict origins, the all origin allow and credentials disable is a temporary measure
func JwtConfigGenerate ¶
func JwtConfigGenerate(jwtKey, realmName string, db *gorm.DB, l *zap.SugaredLogger) *jwt.GinJWTMiddleware
JwtConfigGenerate is used to generate our JWT configuration
Types ¶
Click to show internal directories.
Click to hide internal directories.