Registry / networking / cenkalti-rpc2

cenkalti-rpc2

JSON →
library1.0.5gogounverified

Package rpc2 provides bi-directional RPC client and server similar to net/rpc.

go get github.com/cenkalti/rpc2
INSTALL
IMPORT
SIG · CENKALTI-RPC2
C
cenkalti-rpc2
networkinggov1.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rpc2
✓ github.com/cenkalti/rpc2

Create a bidirectional RPC server and client

package main import ( "fmt" "github.com/cenkalti/rpc2" ) func main() { server := rpc2.NewServer() server.Handle("hello", func(client *rpc2.Client, args *string, reply *string) error { *reply = "Hello, " + *args return nil }) go server.ListenAndServe("tcp", ":1234") client, _ := rpc2.Dial("tcp", ":1234") var reply string client.Call("hello", "World", &reply) fmt.Println(reply) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.5latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Amazon
1
OpenAI (training)
1
Resources
cenkalti-rpc2 — go get cenkalti-rpc2 · libregistry