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

Method IsAutoLoadingRunning

enforcer_synced.go:84–86  ·  view source on GitHub ↗

IsAutoLoadingRunning check if SyncedEnforcer is auto loading policies.

()

Source from the content-addressed store, hash-verified

82
83// IsAutoLoadingRunning check if SyncedEnforcer is auto loading policies.
84func (e *SyncedEnforcer) IsAutoLoadingRunning() bool {
85 return atomic.LoadInt32(&(e.autoLoadRunning)) != 0
86}
87
88// StartAutoLoadPolicy starts a go routine that will every specified duration call LoadPolicy.
89func (e *SyncedEnforcer) StartAutoLoadPolicy(d time.Duration) {

Callers 2

TestStopAutoLoadPolicyFunction · 0.95
StopAutoLoadPolicyMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestStopAutoLoadPolicyFunction · 0.76