|
Csilk 0.2.1
A lightweight, high-performance C HTTP web framework
|
Virtual function table for a permission/ACL driver. More...
#include <perm.h>
Data Fields | |
| const char * | name |
| int(* | check )(csilk_ctx_t *c, const char *permission, const char *resource) |
| Evaluate whether the request is allowed. | |
Virtual function table for a permission/ACL driver.
Implementations evaluate whether a given user (identified through the request context) holds a specific permission on a resource.
| int(* csilk_perm_driver_t::check) (csilk_ctx_t *c, const char *permission, const char *resource) |
Evaluate whether the request is allowed.
| c | Request context (used to identify the authenticated user). |
| permission | Permission string (e.g., "read", "write", "delete"). |
| resource | Resource pattern (e.g., "users:*", "documents:42"). |
| const char* csilk_perm_driver_t::name |
Driver identifier (e.g., "simple", "casbin").