-
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.
- Loading branch information
1 parent
376f29b
commit 1c44a47
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; | ||
} |