Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lthibault/go-libp2p-inproc-transport
In-process transport for libp2p, suitable for testing.
https://github.com/lthibault/go-libp2p-inproc-transport
libp2p libp2p-transport
Last synced: about 1 month ago
JSON representation
In-process transport for libp2p, suitable for testing.
- Host: GitHub
- URL: https://github.com/lthibault/go-libp2p-inproc-transport
- Owner: lthibault
- Created: 2021-04-10T02:39:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T14:52:03.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T14:41:18.981Z (7 months ago)
- Topics: libp2p, libp2p-transport
- Language: Go
- Homepage:
- Size: 402 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-libp2p-inproc-transport
[![GoDoc](https://godoc.org/github.com/lthibault/go-libp2p-inproc-transport?status.svg)](https://godoc.org/github.com/lthibault/go-libp2p-inproc-transport)
[![](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](https://libp2p.io/)An in-process transport for go-libp2p, suitable for testing.
## Installation
```bash
go get -u github.com/lthibault/go-libp2p-inproc-transport
```## Usage
```go
h, _ := 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`.
## Stability
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.