From 0a55a1debd0cdd9ca5832ef824e51f583111928c Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Tue, 24 Oct 2023 13:03:39 +0200 Subject: just_serve.proto: add Configuration service This service allows to query the configuration of the just-serve instance. In particular, it is used to double-check that the associated remote end point is the same used by the interrogating client. --- src/buildtool/serve_api/serve_service/just_serve.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/buildtool/serve_api/serve_service/just_serve.proto b/src/buildtool/serve_api/serve_service/just_serve.proto index 06c60134..c6b805d2 100644 --- a/src/buildtool/serve_api/serve_service/just_serve.proto +++ b/src/buildtool/serve_api/serve_service/just_serve.proto @@ -206,3 +206,15 @@ service Target { // * `INTERNAL`: Internally, something is very broken. rpc ServeTargetVariables(ServeTargetVariablesRequest) returns (ServeTargetVariablesResponse) {} } + +message RemoteExecutionEndpointRequest {} + +message RemoteExecutionEndpointResponse { + string address = 1; +} + +// This service can be used by the client to double check the server configuration +service Configuration { + // Returns the address of the associated remote endpoint + rpc RemoteExecutionEndpoint(RemoteExecutionEndpointRequest) returns (RemoteExecutionEndpointResponse) {} +} -- cgit v1.2.3