Documentation
¶
Index ¶
- func GetLogger() *zap.Logger
- func InitAuthZModule(tempDB *gorm.DB, casbinEnforcer *casbin.Enforcer, l *zap.Logger)
- func InitUsageTracking()
- func SetApiTrackingMiddleware(r *gin.Engine) *gin.Engine
- func SetAuthZMiddleware(r *gin.Engine) *gin.Engine
- func SetRateLimitMiddleware(r *gin.Engine, requestsPerSecond float64, burst int) *gin.Engine
- func SetupUI(r *gin.Engine) *gin.Engine
- func StopAuthZModule()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAuthZModule ¶
InitAuthZModule Initializes new Authorization Instance , of the AZF AuthZ Framework
Params: tempDB - *gorm.DB , it is a temporary db used to save analytics for latter audit
func InitUsageTracking ¶
func InitUsageTracking()
func SetRateLimitMiddleware ¶ added in v0.0.7
func StopAuthZModule ¶
func StopAuthZModule()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.