ipni / index-provider

📢 Index Provider
Other
35 stars 16 forks source link

Code reorganization for readability and reusability #79

Closed gammazero closed 2 years ago

gammazero commented 2 years ago

This issue records proposed changes to make the reference provider more easily consumable by parties wishing to implement their own provider based on the reference provider, and by reusing packages from the reference provider.

masih commented 2 years ago

Remove provider subdirectory in cmd/provider

This is a convention followed elsewhere. Examples include car, Ipfs, k8s.

I am curious why we should remove provider subdirectory here?

masih commented 2 years ago

One item I had in mind was to refactor daemon.go command and move the graphsync setup/start out to a package, probably under server/provider/graphsync.

gammazero commented 2 years ago
mvdan commented 2 years ago

Expose some of the packages in internal

Now done in https://github.com/filecoin-project/index-provider/pull/93.

mvdan commented 2 years ago

Remove provider subdirectory in cmd/provider

I lean against doing this one; see https://github.com/filecoin-project/index-provider/pull/93#issuecomment-970100889

willscott commented 2 years ago

is there more to do here?

gammazero commented 2 years ago

This is done for now.