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

Method GetModel

enforcer.go:222–224  ·  view source on GitHub ↗

GetModel gets the current model.

()

Source from the content-addressed store, hash-verified

220
221// GetModel gets the current model.
222func (e *Enforcer) GetModel() model.Model {
223 return e.model
224}
225
226// SetModel sets the current model.
227func (e *Enforcer) SetModel(m model.Model) {

Callers 6

TestABACTypesFunction · 0.95
TestABACPolicyFunction · 0.95
TestGetAndSetModelFunction · 0.95
TestLoadFilteredPolicyFunction · 0.95

Calls

no outgoing calls

Tested by 6

TestABACTypesFunction · 0.76
TestABACPolicyFunction · 0.76
TestGetAndSetModelFunction · 0.76
TestLoadFilteredPolicyFunction · 0.76