Documentation
¶
Overview ¶
Package casbin provides a singleton Casbin enforcer for RBAC authorization.
It integrates with GORM for policy storage and supports route-level authorization checks via sub/obj/act (subject, object, action) matching.
Package casbin provides a singleton Casbin enforcer for RBAC authorization.
It integrates with GORM for policy storage and supports route-level authorization checks via sub/obj/act matching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enforce ¶
func Enforce() *casbinLib.SyncedEnforcer
Enforce returns the global Casbin enforcer, initializing it once.
Types ¶
This section is empty.