An in-process transport for go-libp2p, suitable for testing.
go get -u github.com/lthibault/go-libp2p-inproc-transporth, _ := libp2p.New(
libp2p.Transport(inproc.New()),
libp2p.ListenAddrString("/inproc/foo"))
// host is reachable at /inproc/foo Note: Users may listen on /inproc/~ to bind to the first available address. This is equivalent to /ip4/0.0.0.0.
As of v0.1.0, go-libp2p-inproc-transport is considered stable and production-ready. We will tag a v1.0 release when go-libp2p and go-libp2p-core have stable releases.
In the meantime, we reserve the right to make backwards-incompatible changes in order to keep up with changes to these APIs. Such changes will be accompanied by a minor version increment.