MCPcopy Create free account
hub / github.com/Permify/permify / EntityToString

Function EntityToString

pkg/tuple/tuple.go:68–70  ·  view source on GitHub ↗

EntityToString converts an Entity object to string format

(entity *base.Entity)

Source from the content-addressed store, hash-verified

66
67// EntityToString converts an Entity object to string format
68func EntityToString(entity *base.Entity) string {
69 return fmt.Sprintf(ENTITY, entity.GetType(), entity.GetId())
70}
71
72// SubjectToString converts a Subject object to string format.
73func SubjectToString(subject *base.Subject) string {

Callers 9

RunWithShapeMethod · 0.92
validateFunction · 0.92
CheckMethod · 0.92
ExpandMethod · 0.92
LookupSubjectMethod · 0.92
SubjectPermissionMethod · 0.92
AddPublishedMethod · 0.92
ToStringFunction · 0.70

Calls 2

GetTypeMethod · 0.65
GetIdMethod · 0.45

Tested by

no test coverage detected