Hey 👋 question about the API client usage in go -...
# spicedb
d
Hey 👋 question about the API client usage in go - we have the following call to
LookupResources
here: https://github.com/RedHatInsights/authz-experiments/blob/main/engine_eval/zanzibar/authzed/attributefilterdemo/src/main.go#L71-L90 we're trying to get those resources and put them into a slice. The only way we found so-far is in line 81-90 but this looks a bit strange. Is there another, more idiomatic way? If not, can you tell us more about the reason this is how it is?
see model.yaml for the model to evaluate here 🙂
j
d
thanks, changed the error handling.
w
Out of curiosity- is this meant to abstract out the results streaming/paging?
j
we don't support paging
LookupResources and LookupSubjects are streaming, yes
w
Makes sense - thanks!
j
long term, the goal for LR is to have a cache