Discover Packages
github.com/cssbruno/gowdk
runtime
guard
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Jun 12, 2026
License: MPL-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
IsNativeRBACGuard reports whether name is a built-in role or permission guard.
RunGuards executes guard IDs in declaration order.
RunGuardsWithAuth executes guard IDs in declaration order and resolves native
RBAC guard IDs such as role:admin and permission:posts.write through provider.
Context is passed to generated request-time guard functions.
NewContext creates the first-slice request context for generated guards.
Func authorizes one generated request-time route or endpoint access check.
NativeRBACGuard returns a guard for a native role or permission guard ID.
Registry resolves guard IDs to executable guard functions.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.