Lightweight, modular RPC framework
This repository has been archived on 2022-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2022-05-28 14:52:00 -07:00
client Fix bug where the connection handler tries to access a channel before it has been created 2022-05-10 02:07:35 -07:00
codec Add introspection functions 2022-05-07 14:59:04 -07:00
examples Propagate context to requests 2022-05-12 17:13:44 -07:00
internal Use Convert() for arrays in reflectutil.ConvertSlice() 2022-05-07 15:02:06 -07:00
server Add error for unexpected arguments 2022-05-26 13:01:29 -07:00
go.mod Set module go version to 1.17 2022-05-07 21:41:51 -07:00
go.sum Add WebSocket server support 2022-05-02 14:47:00 -07:00
LICENSE Initial Commit 2022-05-01 01:39:22 -07:00
lrpc_test.go Add channel test to lrpc 2022-05-28 14:52:00 -07:00
README.md Clarify README 2022-05-01 21:27:14 -07:00

lrpc

Go Reference Go Report Card

A lightweight RPC framework that aims to be as easy to use as possible, while also being as lightweight as possible. Most current RPC frameworks are bloated to the point of adding 7MB to my binary, like RPCX. That is what prompted me to create this.


Channels

This RPC framework supports creating channels to transfer data from server to client. My use-case for this is to implement watch functions and transfer progress in ITD, but it can be useful for many things.


Codec

When creating a server or client, a CodecFunc can be provided. An io.ReadWriter is passed into the CodecFunc and it returns a Codec, which is an interface that contains encode and decode functions with the same signature as json.Decoder.Decode() and json.Encoder.Encode().

This allows any codec to be used for the transfer of the data, making it easy to create clients in different languages.