ContextBatchAdapter is the context-aware interface for Casbin adapters with multiple add and remove policy functions.
| 18 | |
| 19 | // ContextBatchAdapter is the context-aware interface for Casbin adapters with multiple add and remove policy functions. |
| 20 | type ContextBatchAdapter interface { |
| 21 | ContextAdapter |
| 22 | |
| 23 | // AddPoliciesCtx adds policy rules to the storage. |
| 24 | // This is part of the Auto-Save feature. |
| 25 | AddPoliciesCtx(ctx context.Context, sec string, ptype string, rules [][]string) error |
| 26 | // RemovePoliciesCtx removes policy rules from the storage. |
| 27 | // This is part of the Auto-Save feature. |
| 28 | RemovePoliciesCtx(ctx context.Context, sec string, ptype string, rules [][]string) error |
| 29 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…