Closed gammazero closed 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
.
provider
subdir was because I did not see any reason for it as there are not other subdirs there.server/provider/graphsync
is fine, but consider if this is a package that is useful to outside applications, and maybe not strictly as part of building a server. If it is not specific to server functionality, then maybe it should be a top level package, or maybe should be a package inside a network
directory.Expose some of the packages in
internal
Now done in https://github.com/filecoin-project/index-provider/pull/93.
Remove
provider
subdirectory incmd/provider
I lean against doing this one; see https://github.com/filecoin-project/index-provider/pull/93#issuecomment-970100889
is there more to do here?
This is done for now.
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.
provider
subdirectory incmd/provider
engine/linksystem
into a separate packageengine/engine.go
to top-level directory.internal
engine/dscache.go
into separate pacakge. Possibly move it into a package undergo-datastore
.