-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proto service contracts. This is a manual copy of https://github.com/…
…restatedev/proto/blob/main/dev/restate/services.proto in a temporary location.
- Loading branch information
1 parent
3cce65a
commit 8675513
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
This package provides interfaces for built-in services | ||
*/ | ||
syntax = "proto3"; | ||
|
||
package dev.restate; | ||
|
||
option java_multiple_files = true; | ||
option java_package = "dev.restate.generated"; | ||
option go_package = "restate.dev/sdk-go/pb"; | ||
|
||
service Ingress { | ||
// Invoke a service and don't wait for the response. | ||
// It is guaranteed that the service will be invoked after this method returns. | ||
rpc Invoke(InvokeRequest) returns (InvokeResponse); | ||
} | ||
|
||
message InvokeRequest { | ||
// Fully qualified name of the service, e.g. `counter.Counter` | ||
string service = 1; | ||
// Method name of the service to invoke, e.g. `Add` | ||
string method = 2; | ||
// Argument of the invocation. | ||
// When executing requests to the ingress using Protobuf, | ||
// this field must contain the serialized Protobuf matching the argument type of the target method. | ||
// When executing requests to the ingress using JSON, | ||
// this field must contain the JSON object representing the argument type of the target method. | ||
bytes argument = 3; | ||
} | ||
|
||
message InvokeResponse { | ||
// Generated unique invocation identifier. | ||
// It can be used to retrieve the status of the invocation and cancel it. | ||
string sid = 1; | ||
} |