examples
examples copied to clipboard
Code of `examples/api/service/readme.md` is outdated and misleading, since IPFS corenet is deprecated.
see: https://github.com/ipfs/examples/tree/master/examples/api/service#making-your-own-ipfs-service
The example code "Making your own ipfs service" is outdated and broken since "go-ipfs/core/corenet" was deprecated during the follow commits: https://github.com/ipfs/go-ipfs/pull/3943/commits of our developer magik6k.
The related article "Roll your own ipfs!" is also posted on the examples page of the official website ipfs.io, see: https://ipfs.io/docs/examples/
I found this issue when I was trying to make my own IPFS service. Since I am not quite experienced in Golang development, I have no idea of what to do to fix the missing package go-ipfs/core/corenet
when trying to go run host.go
as the example article showed.
I thought @whyrusleeping or @magik6k might be the right person who could help us to update or re-write this tutorial, so that we can help more developers making their own IPFS services. Thank you very much.
I just ran into this exact same issue and can't seem to find documentation anywhere else.
I would probably start here since examples can be missing for new implementation.
Did anyone solve this problem?
@W-B-S when I looked into it my conclusion was that they were in the midst of a project restructure and that the docs and examples were in flux. I could be wrong and it may have settled down by now, but that's what I gathered at the time.
The current implementation lives in https://github.com/ipfs/go-ipfs/tree/master/p2p, and is exposed via ipfs p2p
commands. Both of these things are likely to change in short-to-mid future as new, more stable api - CoreAPI - is being defined.