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

Struct EnforceContext

enforcer.go:64–69  ·  view source on GitHub ↗

EnforceContext is used as the first element of the parameter "rvals" in method "enforce".

Source from the content-addressed store, hash-verified

62
63// EnforceContext is used as the first element of the parameter "rvals" in method "enforce".
64type EnforceContext struct {
65 RType string
66 PType string
67 EType string
68 MType string
69}
70
71func (e EnforceContext) GetCacheKey() string {
72 return "EnforceContext{" + e.RType + "-" + e.PType + "-" + e.EType + "-" + e.MType + "}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected