https://github.com/libp2p/go-libp2p-gorpc
A simple RPC library for libp2p.
https://github.com/libp2p/go-libp2p-gorpc
Last synced: about 1 year ago
JSON representation
A simple RPC library for libp2p.
- Host: GitHub
- URL: https://github.com/libp2p/go-libp2p-gorpc
- Owner: libp2p
- License: other
- Created: 2016-12-23T12:51:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-29T08:32:23.000Z (over 1 year ago)
- Last Synced: 2025-04-01T10:16:47.479Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 441 KB
- Stars: 63
- Watchers: 21
- Forks: 18
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# go-libp2p-gorpc
[](https://protocol.ai)
[](https://libp2p.io)
[](http://webchat.freenode.net/?channels=%23libp2p)
[](https://pkg.go.dev/github.com/libp2p/go-libp2p-gorpc)
[](https://codecov.io/gh/libp2p/go-libp2p-gorpc)
[](https://discuss.libp2p.io)
> Simple Go RPC for libp2p.
`go-libp2p-gorpc` provides RPC support on top of libp2p in the same way that [net/rpc](https://golang.org/pkg/net/rpc) does on HTTP with a few additional features like:
- Streaming RPC calls using channels.
- Contexts and async calls.
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#license)
## Install
This module can be installed with `go get`:
```
> go get github.com/libp2p/go-libp2p-gorpc
```
This repo is [gomod](https://github.com/golang/go/wiki/Modules)-compatible, and users of
go 1.11 and later with modules enabled will automatically pull the latest tagged release
by referencing this package. Upgrades to future releases can be managed using `go get`,
or by editing your `go.mod` file as [described by the gomod documentation](https://github.com/golang/go/wiki/Modules#how-to-upgrade-and-downgrade-dependencies).
## Usage
Documentation for this module is maintained in [pkg.go.dev](https://pkg.go.dev/github.com/libp2p/go-libp2p-gorpc).
There are also examples inside the [examples directory](./examples)
## Contribute
PRs accepted.
Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
## License
MIT
---
The last gx published version of this module was: 1.1.4: QmcJCApoEsCJJap2iS1os9GFX5EuRrfuPeZdjCopz2SyPm