package
0.0.0-20180619125102-3a625a327036
Repository: https://github.com/levenlabs/gatewayrpc.git
Documentation: pkg.go.dev

# README

gateway

GoDoc

Gateway is library used for creating a "gateway api", a simple rpc server which forwards requests to other rpc servers that it discovers, based on the service portion of the rpc call's method name.

It also allows for injection of code just before the forwarding, to allow for things like rate-limiting, authentication, and any other behavior you might want to apply to some or all of the calls coming through it.

You can also define methods and services internal to gateway to handle things like sessions or helper methods.

# Functions

NewGateway returns an instantiated Gateway object.

# Structs

Gateway is an http.Handler which implements the JSON RPC2 spec, but forwards all of its requests onto backend services.
Request contains all the data about an incoming request which is currently known.