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

Method UpdateForAddPolicies

persist/watcher_ex.go:36–36  ·  view source on GitHub ↗

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

(sec string, ptype string, rules ...[]string)

Source from the content-addressed store, hash-verified

34 // UpdateForAddPolicies calls the update callback of other instances to synchronize their policy.
35 // It is called after Enforcer.AddPolicies()
36 UpdateForAddPolicies(sec string, ptype string, rules ...[]string) error
37 // UpdateForRemovePolicies calls the update callback of other instances to synchronize their policy.
38 // It is called after Enforcer.RemovePolicies()
39 UpdateForRemovePolicies(sec string, ptype string, rules ...[]string) error

Callers 2

addPoliciesMethod · 0.65
addPoliciesCtxMethod · 0.65

Implementers 1

SampleWatcherExwatcher_ex_test.go

Calls

no outgoing calls

Tested by

no test coverage detected