Giter VIP home page Giter VIP logo

jrpc's Introduction

Go json-rpc protobuf plugin

JSON-RPC? gRPC? jRPC!

jRPC is a simple plugin that generates http endpoints from a proto schema. It is useful when your client does not have access to gRPC endpoints

Try it: git clone https://github.com/danielvladco/jrpc.git && cd ./jrpc/example && go run server.go

Test it: curl --data '{ "bool": true, "msg": { "param1": "test" } }' http://localhost:8080/Service/Endpoint1

Generate command: protoc --go_out=plugins=grpc,paths=source_relative:. --jrpc_out=paths=source_relative:. ./example/pb/*.proto

It's as easy as this! try it out and save yourself lots of time writing boilerplate code and debugging potential bugs.

See /example for more documentation

Features

  • JSON Request decoding
  • JSON response encoding
  • Generates endpoints by the following formula: / + service name + / + method name. ex: /Service/Endpoint1
  • gRPC status codes to http status codes
  • (not supported) client streaming
  • (not supported) server streaming

License:

jRPC is released under the Apache 2.0 license. See the LICENSE file for details.

jrpc's People

Contributors

danielvladco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jeffreylo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.