hey all, i'm new to grpc in general, and
# spicedb
h
hey all, i'm new to grpc in general, and struggling to use the golang SDK to read relationships and lookup resources. i can't find a good example that does this. can someone help me write a quick code snippet that shows how to use the cursor to iteratively get back a list of relationships or resources?
I get as far as getting back a https://pkg.go.dev/github.com/authzed/authzed-go@v0.10.1/proto/authzed/api/v1#PermissionsService_ReadRelationshipsClient response. But when I call
Recv()
on it, I get an
EOF
error.
there is a similar test for LookupResources
its returned when the stream is completed
h
Thank you for the prompt response, the test example was helpful!!
8 Views