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

Method QuerySingleAttribute

internal/storage/storage.go:23–23  ·  view source on GitHub ↗

QuerySingleAttribute retrieves a single attribute from the storage based on the given filter. It returns the retrieved attribute and any error encountered.

(ctx context.Context, tenantID string, filter *base.AttributeFilter, snap string)

Source from the content-addressed store, hash-verified

21 // QuerySingleAttribute retrieves a single attribute from the storage based on the given filter.
22 // It returns the retrieved attribute and any error encountered.
23 QuerySingleAttribute(ctx context.Context, tenantID string, filter *base.AttributeFilter, snap string) (attribute *base.Attribute, err error)
24
25 // QueryAttributes reads multiple attributes from the storage based on the given filter.
26 // It returns an iterator to iterate over the attributes and any error encountered.

Callers 10

QuerySingleAttributeMethod · 0.65
QuerySingleAttributeMethod · 0.65
expandDirectAttributeMethod · 0.65
checkDirectAttributeMethod · 0.65

Implementers 5

NoopDataReaderinternal/storage/storage.go
DataReaderinternal/storage/proxies/circuitbreake
DataReaderinternal/storage/proxies/singleflight/
DataReaderinternal/storage/postgres/data_reader.
DataReaderinternal/storage/memory/data_reader.go

Calls

no outgoing calls

Tested by

no test coverage detected