Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

feat: LsBatchSync to fetch single batch of results #4

Merged
merged 3 commits into from
Nov 30, 2020

Conversation

lidel
Copy link
Member

@lidel lidel commented Nov 20, 2020

This PR adds function that returns a single batch and an int with total count to indicate if more results match passed query.

@lidel lidel changed the title init: use template for the dual Apache-MIT license and basic README feat: LsBatchSync to fetch single batch of results Nov 20, 2020
lidel added a commit to ipfs/kubo that referenced this pull request Nov 20, 2020
This adds --pin-count opt-in flag that returns number
of 'queued/pinning/pinned/failed' pins at remote service
or 'offline' if fetch of pin counts was not possible

JSON representation uses PinCount object (missing when 'offline')

Requires LsBatchSync from
ipfs/go-pinning-service-http-client#4
client.go Show resolved Hide resolved
client.go Outdated Show resolved Hide resolved
client.go Outdated Show resolved Hide resolved
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left a comment responding to your question. If it makes makes we can remove the question comment + merge.

lidel added a commit that referenced this pull request Nov 30, 2020
@lidel
Copy link
Member Author

lidel commented Nov 30, 2020

@aschmahmann addressed your feedback, should be good now.

This adds function that returns a single batch and an int with total
count. This enables consumer of this lib to implement manual pagination
or get total pin count in efficient manner.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants