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

Separate implementation and fix types#16

Merged
hannahhoward merged 6 commits intomainfrom
feat/seperate-module-fix-types
Apr 19, 2021
Merged

Separate implementation and fix types#16
hannahhoward merged 6 commits intomainfrom
feat/seperate-module-fix-types

Conversation

@hannahhoward
Copy link
Copy Markdown
Collaborator

@hannahhoward hannahhoward commented Apr 10, 2021

Goals

Per discussions with @aschmahmann, this PR moves the implementation to a separate package from the interfaces. It also makes the fetching functions take ipld.Node's instead of parsed selectors.

Implementation

  • make an impl folder with a blockservice implementation subfolder -- cause eventually there may be other implementations that work directly with bitswap and graphsync
  • move the traversal helpers into the helpers folder
  • change the functions to take ipld.Node's as parameters
  • also adds circle ci config! wow that was late.

move block service implementation to its own package. move traversal helpers to traversal directory
define an interface for making new instances of the fetcher
update parameter names on interface to be more clear
@hannahhoward hannahhoward merged commit d24b660 into main Apr 19, 2021
Jorropo pushed a commit to ipfs/go-libipfs-rapide that referenced this pull request Mar 23, 2023
…fix-types

Separate implementation and fix types

This commit was moved from ipfs/go-fetcher@d24b660
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