Skip to content

Commit

Permalink
add string key to materialize cursor
Browse files Browse the repository at this point in the history
to support backends that can directly index instead of using an offset
  • Loading branch information
ecordell committed Aug 16, 2024
1 parent de42742 commit 61f4af5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion authzed/api/materialize/v0/watchpermissionsets.proto
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ message Cursor {
uint32 starting_index = 5;
// completed_members is a boolean flag that indicates that the cursor has reached the end of the permission sets
bool completed_members = 6;
// starting_key is a string cursor used by some backends to resume the stream from a specific point.
string starting_key = 7;
}

message LookupPermissionSetsRequest {
Expand Down Expand Up @@ -181,4 +183,4 @@ message LookupPermissionSetsRequired {
message BreakingSchemaChange {
// change_at is the revision at which a breaking schema event has happened.
authzed.api.v1.ZedToken change_at = 1;
}
}

0 comments on commit 61f4af5

Please sign in to comment.