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

Method AddPublished

internal/engines/utils.go:100–104  ·  view source on GitHub ↗
(entity *base.Entity)

Source from the content-addressed store, hash-verified

98}
99
100func (s *VisitsMap) AddPublished(entity *base.Entity) bool {
101 key := tuple.EntityToString(entity)
102 _, existed := s.published.LoadOrStore(key, struct{}{})
103 return !existed
104}
105
106// SubjectFilterResponse -
107type SubjectFilterResponse struct {

Callers 5

EntityFilterMethod · 0.80
attributeEntranceMethod · 0.80
ltMethod · 0.80
pathChainEntranceMethod · 0.80

Calls 1

EntityToStringFunction · 0.92

Tested by

no test coverage detected