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

Method GetAdapter

enforcer.go:235–237  ·  view source on GitHub ↗

GetAdapter gets the current adapter.

()

Source from the content-addressed store, hash-verified

233
234// GetAdapter gets the current adapter.
235func (e *Enforcer) GetAdapter() persist.Adapter {
236 return e.adapter
237}
238
239// SetAdapter sets the current adapter.
240func (e *Enforcer) SetAdapter(adapter persist.Adapter) {

Callers 2

TestLoadFilteredPolicyFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestLoadFilteredPolicyFunction · 0.76