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

Function loadSection

model/model.go:120–129  ·  view source on GitHub ↗
(model Model, cfg config.ConfigInterface, sec string)

Source from the content-addressed store, hash-verified

118}
119
120func loadSection(model Model, cfg config.ConfigInterface, sec string) {
121 i := 1
122 for {
123 if !loadAssertion(model, cfg, sec, sec+getKeySuffix(i)) {
124 break
125 } else {
126 i++
127 }
128 }
129}
130
131// NewModel creates an empty model.
132func NewModel() Model {

Callers 1

loadModelFromConfigMethod · 0.85

Calls 2

loadAssertionFunction · 0.85
getKeySuffixFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…