Skip to content

Commit

Permalink
Merge pull request #4 from plexsysio/aloknerurkar-patch-3
Browse files Browse the repository at this point in the history
Create README.md
  • Loading branch information
aloknerurkar committed May 2, 2023
2 parents 6af9f10 + b45d5a1 commit 8798a3f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,11 @@ jobs:
run: go build -v ./...

- name: Test
run: go test -v -race ./...
run: go test -v -race -coverprofile=cover.out ./...

- name: Coveralls
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: cover.out
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# go-libp2p-genrpc [![Go](https://github.com/plexsysio/go-libp2p-genrpc/workflows/Go/badge.svg)](https://github.com/plexsysio/go-libp2p-genrpc/actions) [![Go Reference](https://pkg.go.dev/badge/github.com/plexsysio/go-libp2p-genrpc.svg)](https://pkg.go.dev/github.com/plexsysio/go-libp2p-genrpc) [![Coverage Status](https://coveralls.io/repos/github/plexsysio/go-libp2p-genrpc/badge.svg?branch=main)](https://coveralls.io/github/plexsysio/go-libp2p-genrpc?branch=main)
Generics based RPC framework using libp2p

`go-libp2p-genrpc` is a small library which provides a type-safe API to write go functions as RPCs over libp2p transport.

The goal was to see if we can provide similar functionality as `go-libp2p-gorpc` but using generics in a type-safe manner. The result is a slightly different API which is more verbose. Additional functionality like writing middlewares is also possible.

## Install
This module can be installed with `go get`:
```
> go get github.com/plexsysio/go-libp2p-genrpc
```

## Usage
Check [docs](https://pkg.go.dev/github.com/plexsysio/go-libp2p-genrpc).

There are also some [examples](https://github.com/plexsysio/go-libp2p-genrpc/tree/main/examples).

0 comments on commit 8798a3f

Please sign in to comment.