feat: add scroll / iteration helpers
This commit is contained in:
parent
7d1910919c
commit
6eb7e62a0c
6 changed files with 196 additions and 11 deletions
10
client.go
10
client.go
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue