MCPcopy Index your code
hub / github.com/apache/casbin / NewDistributedEnforcer

Function NewDistributedEnforcer

enforcer_distributed.go:13–22  ·  view source on GitHub ↗
(params ...interface{})

Source from the content-addressed store, hash-verified

11}
12
13func NewDistributedEnforcer(params ...interface{}) (*DistributedEnforcer, error) {
14 e := &DistributedEnforcer{}
15 var err error
16 e.SyncedEnforcer, err = NewSyncedEnforcer(params...)
17 if err != nil {
18 return nil, err
19 }
20
21 return e, nil
22}
23
24// SetDispatcher sets the current dispatcher.
25func (d *DistributedEnforcer) SetDispatcher(dispatcher persist.Dispatcher) {

Callers

nothing calls this directly

Calls 1

NewSyncedEnforcerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…