feat: add scroll / iteration helpers

This commit is contained in:
Milas Bowman 2025-03-10 21:31:07 -04:00
parent 7d1910919c
commit 6eb7e62a0c
Signed by: milas
SSH key fingerprint: SHA256:ek2D5l1HA34B3wbdErz0QOXm1E46CVvyf/nM4Fwfx/U
6 changed files with 196 additions and 11 deletions

View file

@ -143,14 +143,14 @@ type ReadIndexResponsePartitionKey struct {
}
type ReadIndexResponse struct {
Prefix any `json:"prefix"`
Start any `json:"start"`
End any `json:"end"`
Limit any `json:"limit"`
Prefix *string `json:"prefix"`
Start *string `json:"start"`
End *string `json:"end"`
Limit *int `json:"limit"`
Reverse bool `json:"reverse"`
PartitionKeys []ReadIndexResponsePartitionKey `json:"partitionKeys"`
More bool `json:"more"`
NextStart any `json:"nextStart"`
NextStart *string `json:"nextStart"`
}
func (c *Client) ReadIndex(ctx context.Context, b Bucket, q ReadIndexQuery) (*ReadIndexResponse, error) {