Giter Site home page Giter Site logo

n0l1n / grpc-vapor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apodini/grpc-vapor

0.0 0.0 0.0 499 KB

gRPC Vapor is a Vapor middleware framework that enables Vapor servers to support, route, encode and decode gRPC requests.

Home Page: https://apodini.github.io/grpc-vapor/

License: MIT License

Swift 100.00%

grpc-vapor's Introduction

gRPC Vapor

gRPC Vapor is a Vapor middleware framework that enables Vapor servers to support, route, encode and decode gRPC requests.

This framework is designed to work together with the GRPCVaporGenerator which analyzes the declared gRPC services and messages and then generates the necessary supporting code to route requests, provide encoding and decoding support and provide a proto interface definition file.

This framework is like the 1.0 version of grpc-swift build ontop of SwiftNIO instead of the common C-Core for most implementations. This is due to usage of the Vapor as its networking component. The encoding and decoding of the gRPC messages is realized using the SwiftProtobuf framework.

Supported Systems

This framework works with Vapor version 4.0 or higher and requires the Swift version to be 5.2 or higher.

Framework

The interface of this framework primarly consists of three main components that are needed to declare and integrate gRPC services in an existing Vapor application:

  • A GRPCMiddleware that implements Vapors Middleware protocol and can therefore be added to a Vapor application.
  • A GRPCService protocol that declares a structure or class as a gRPC service and provides a routing method for remote procedure calls.
  • A GRPCModel protocol that declares a structure or class as a gRPC message that can be used as an input or output of remote procedure calls.

Additionally:

Using call handlers GRPCMessage GRPCRequest GRPCStream

Generator

Usage

Instructions to integrate

License

??

Contributing

If you want to contribute your own ideas and changes to feel free to create a github issue or contact me directly via e-mail [email protected].

grpc-vapor's People

Contributors

michaelschlicker avatar

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.