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

Method UpdateForUpdatePolicy

persist/watcher_update.go:22–22  ·  view source on GitHub ↗

UpdateForUpdatePolicy calls the update callback of other instances to synchronize their policy. It is called after Enforcer.UpdatePolicy()

(sec string, ptype string, oldRule, newRule []string)

Source from the content-addressed store, hash-verified

20 // UpdateForUpdatePolicy calls the update callback of other instances to synchronize their policy.
21 // It is called after Enforcer.UpdatePolicy()
22 UpdateForUpdatePolicy(sec string, ptype string, oldRule, newRule []string) error
23 // UpdateForUpdatePolicies calls the update callback of other instances to synchronize their policy.
24 // It is called after Enforcer.UpdatePolicies()
25 UpdateForUpdatePolicies(sec string, ptype string, oldRules, newRules [][]string) error

Callers 2

updatePolicyMethod · 0.65
updatePolicyCtxMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected