Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PageSize is the internal keyset batch size; RAM is limited to one page. PageSize = 1024 // MaxVersions caps versions in one built list to limit cold-build work on huge histories. MaxVersions = 10000 )
Variables ¶
This section is empty.
Functions ¶
func EachVersion ¶
func EachVersion(ctx context.Context, store VersionListerInterface, key string, cb func(core.VersionObj) (stop bool, err error)) error
EachVersion walks key versions newest-first in PageSize batches while holding one page in RAM. The callback can stop the walk or return an error; the cursor advances by the last page item.
Types ¶
Click to show internal directories.
Click to hide internal directories.