@@ -36,8 +36,9 @@ type Interface interface {
36
36
// If opts.Revision is non-zero, the key-value pairs are retrieved at the specified revision.
37
37
// If the required revision has been compacted, the request will fail with ErrCompacted.
38
38
// If opts.Limit is greater than zero, the number of returned key-value pairs is bounded by the limit.
39
- // If opts.Continue is not empty, the listing will start from the key immediately after the one specified by Continue.
40
- // The Continue value should be the last key returned in a previous paginated ListResponse.
39
+ // If opts.Continue is not empty, the listing will start from the key
40
+ // specified by it. When paginating, the Continue value should be set
41
+ // to the last observed key with "\x00" appended to it.
41
42
List (ctx context.Context , prefix string , opts ListOptions ) (ListResponse , error )
42
43
43
44
// Count returns the number of keys with the specified prefix.
@@ -74,8 +75,9 @@ type ListOptions struct {
74
75
// 0 means no limitation.
75
76
Limit int64
76
77
77
- // Continue is a key from which to resume the List operation, excluding the given key.
78
- // It should be set to the last key from a previous ListResponse when paginating.
78
+ // Continue is a key from which to resume the List operation.
79
+ // It should be set to the last key from a previous ListResponse
80
+ // with "\x00" appended to it when paginating.
79
81
Continue string
80
82
}
81
83
0 commit comments