Skip to content
Snippets Groups Projects
Commit 13486a81 authored by Georges Racinet's avatar Georges Racinet
Browse files

rhgitaly::streaming::stream_with_pagination

This generic helper in `rhgitaly::streaming` is for the case
of streamed responses with `repeated` items, the whole stream
being the current page. In all cases known to us, GitLab derives
some information from the last item of the last chunk to be
the `next_cursor`, hence we introduce a trait for the item
to represent that, and use it in the implementation.

The first use-case will be the implementation of
`CommitService.GetTreeEntries`, but this also makes
the likes of `RefService.FindLocalBranches` essentially trivial.
parent d124dd52
No related branches found
No related tags found
2 merge requests!189Merged stable branch into default and bumped VERSION,!188RHGitaly CommitService.GetTreeEntries implementation
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment