Skip to content

GRPC handlers #21

@hanagantig

Description

@hanagantig

Summary

Currently there is no way to generate GRPC handlers (only http handlers available). It should be possible to configure our routes in goro.yaml and bind it with different handlers (in this case with GRPC)

Intended Outcome

With such a feature to configure routes with different protocols we can easily use the same use case method via various transports.

How will it work?

There should be a way to configure usecases to access with needed protocol. Proto file url also has to be provided in config. goro init command should generate grpc server, generate all boilerplate code to run the server with provided proto and use case methods bindings.
The config could look like this:

handlers:
  v1:
    proto_file: "path/to/file"
    routing:
      - operation: operationID
        use_case: GetClients
        protocols: [http, grpc]
      - operation: signIN
        use_case: SignUp
        protocols: [grpc]

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions