azf

package module
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 17 Imported by: 1

README

A Go AZ Framework

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *zap.Logger

func InitAuthZModule

func InitAuthZModule(
	tempDB *gorm.DB,
	casbinEnforcer *casbin.Enforcer,
	l *zap.Logger,
)

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 SetApiTrackingMiddleware

func SetApiTrackingMiddleware(r *gin.Engine) *gin.Engine

func SetAuthZMiddleware

func SetAuthZMiddleware(r *gin.Engine) *gin.Engine

func SetRateLimitMiddleware added in v0.0.7

func SetRateLimitMiddleware(r *gin.Engine, requestsPerSecond float64, burst int) *gin.Engine

func SetupUI

func SetupUI(r *gin.Engine) *gin.Engine

func StopAuthZModule

func StopAuthZModule()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL