An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# go-libp2p-gorpc

[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](https://protocol.ai)
[![](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](https://libp2p.io)
[![](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p)
[![GoDoc](https://pkg.go.dev/badge/github.com/libp2p/go-libp2p-gorpc)](https://pkg.go.dev/github.com/libp2p/go-libp2p-gorpc)
[![Codecov](https://codecov.io/gh/libp2p/go-libp2p-gorpc/badge.svg)](https://codecov.io/gh/libp2p/go-libp2p-gorpc)
[![Discourse posts](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg)](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