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

Interface BatchAdapter

persist/batch_adapter.go:18–26  ·  view source on GitHub ↗

BatchAdapter is the interface for Casbin adapters with multiple add and remove policy functions.

Source from the content-addressed store, hash-verified

16
17// BatchAdapter is the interface for Casbin adapters with multiple add and remove policy functions.
18type BatchAdapter interface {
19 Adapter
20 // AddPolicies adds policy rules to the storage.
21 // This is part of the Auto-Save feature.
22 AddPolicies(sec string, ptype string, rules [][]string) error
23 // RemovePolicies removes policy rules from the storage.
24 // This is part of the Auto-Save feature.
25 RemovePolicies(sec string, ptype string, rules [][]string) error
26}

Callers

nothing calls this directly

Implementers 6

Enforcerenforcer.go
SyncedEnforcerenforcer_synced.go
Transactiontransaction.go
SyncedCachedEnforcerenforcer_cached_synced.go
Adapterpersist/file-adapter/adapter.go
AdapterMockpersist/file-adapter/adapter_mock.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…