HomePhabricator
Diffusion Comm 907d9033cce5

[services] Tunnelbroker - Adding Tonic gRPC server with empty handlers

Description

[services] Tunnelbroker - Adding Tonic gRPC server with empty handlers

Summary:
This diff introduces adding of the gRPC server empty core implementation using Tonic.

The server module with the empty API handlers is added (handlers return a "Not implemented yet" error).
Tonic forces us to implement all of the existing handlers in the imported proto file, that's why the deprecated API empty handlers are implemented with the error code "Deprecated". Otherwise, the cargo build will fail.
These old API handlers will be removed after removing the old API from a proto file in ENG-1334.

The new API handlers implementations will be added as a follow-up diffs as a handler struct implementation.

Linear task: ENG-2094

Test Plan:
1. Manually testing:
In the services/tunnelbroker directory run cargo run command. This command will build and run the server.
The gRPC server will listen to the default port. Requesting the gRPC API using the gRPC client will result in a "Not implemented yet" or "Deprecated" returns.

2. CI testing:
Passing the CI builds.

Reviewers: jon, varun, marcin, tomek

Reviewed By: jon, tomek

Subscribers: ashoat, tomek, atul, abosh

Differential Revision: https://phab.comm.dev/D5477

Details

Provenance
maxAuthored on Oct 25 2022, 10:31 AM
Reviewer
jon
Differential Revision
D5477: [services] Tunnelbroker - Adding Tonic gRPC server with empty handlers
Parents
rCOMMc4ef42a3fb4d: [native] Added show/hide password button.
Branches
Unknown
Tags
Unknown