/rpc

Modified version of the net/rpc Go package with context, middleware, and headers.

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

RPC Package

Go Reference Go Report Card Build Status

Based off of (copied from) the net/rpc package with the following changes:

go get -u github.com/renevo/rpc
  • Server and Client context.Context implementations.
  • Header support
    • Client Header Injection
    • Server Header Inspection and Injection
  • Server Middleware
  • Requests now have a unique ID rather than a Sequence number

The following features have been removed:

  • DialHTTP
  • ServeHTTP
  • HandleHTTP

The HTTP functionality could be added to this relatively easily through server.ServeRequest

Stability

This API is mostly stable, however it will not be given a 1.x release until it is.