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

Method GetFieldIndex

internal_api.go:543–545  ·  view source on GitHub ↗
(ptype string, field string)

Source from the content-addressed store, hash-verified

541}
542
543func (e *Enforcer) GetFieldIndex(ptype string, field string) (int, error) {
544 return e.model.GetFieldIndex(ptype, field)
545}
546
547func (e *Enforcer) SetFieldIndex(ptype string, field string, index int) {
548 assertion := e.model["p"][ptype]

Calls

no outgoing calls

Tested by

no test coverage detected