MCPcopy
hub / github.com/apache/casbin / ContextBatchAdapter

Interface ContextBatchAdapter

persist/batch_adapter_context.go:20–29  ·  view source on GitHub ↗

ContextBatchAdapter is the context-aware interface for Casbin adapters with multiple add and remove policy functions.

Source from the content-addressed store, hash-verified

18
19// ContextBatchAdapter is the context-aware interface for Casbin adapters with multiple add and remove policy functions.
20type 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}

Callers

nothing calls this directly

Implementers 2

ContextEnforcerenforcer_context.go
Adapterpersist/file-adapter/adapter.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…