package
0.0.0-20241212210152-128162bacc65
Repository: https://github.com/awanishnathpandey/leaf.git
Documentation: pkg.go.dev
# Functions
CheckUserPermissions verifies if the user has the required permissions for an action, with added caching to improve performance by reducing database queries.
No description provided by the author
Initialize the queries object once.
Insert the audit log asynchronously.
JWTMiddleware is a custom middleware to authenticate requests using JWT.
StartWorkerPool initializes the worker pool for handling audit log insertion.
StartWorkerPool initializes the worker pool.
StopWorkerPool gracefully stops all workers.
StopPermissionCacheCleanup sends a signal to stop the cleanup process.
StopWorkerPool gracefully stops all workers.
# Structs
AuditLogEntry represents an audit log entry.
MyClaims struct includes JWT standard claims and custom claims.