Coder Social home page Coder Social logo

restli-go's Introduction

restli-go

(work in progress)

Rest.li support in Go.

This project proposes a different approach with 2 principles in mind:

  • Simplicity. For example, from the generated code, the developer should be able to send a request and get the response with 1 line of code for simple use cases
  • Small generated code: The generation should limit the number of line of codes

Feature scope

Here is the list of feature the client will support:

  • Parallelization of asynchronous operations
  • Serialized execution for non-blocking computation
  • Query composition
  • Automatic batching
  • Retry policy
  • Backup request
  • SLA
  • Filters/middleware
  • Caching (based on Cache headers)

Run

Build and install: go install

Generate the files: restli-go <output directory> <pdsc/idl directory>...

The output directory is the repository where the generated files will be stored. The pdsc/idl directory are the directories that contain the pdsc and idl files to scan. The code will be generated from these files and will be stored in the output directory path. If an extension file is not recognized, the file will be ignored.

example: restli-go ./generated ./samples

Client

The repo comes from examples to illustrate the code generated.

To run the code generation on the examples: restli-go ./generated ./samples

Simple Get Request: p, err := generated.GetProfile(context.Background(), 1)

restli-go's People

Contributors

maximelamure avatar

Watchers

James Cloos avatar

Forkers

bdittmer

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.