Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit cae9938

Browse files
Headers (#57)
* Add headers fields in StartMessage for the invocation input headers. * Add headers fields in StartMessage in InvokeEntryMessage and BackgroundInvokeEntryMessage.
1 parent 4251b0e commit cae9938

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dev/restate/service/protocol.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ message StartMessage {
3939
// protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
4040
repeated StateEntry state_map = 4;
4141
bool partial_state = 5;
42+
43+
repeated Header headers = 6;
4244
}
4345

4446
// Type: 0x0000 + 1
@@ -196,6 +198,8 @@ message InvokeEntryMessage {
196198

197199
bytes parameter = 3;
198200

201+
repeated Header headers = 4;
202+
199203
oneof result {
200204
bytes value = 14;
201205
Failure failure = 15;
@@ -216,6 +220,8 @@ message BackgroundInvokeEntryMessage {
216220
// If this value is not set, equal to 0, or past in time,
217221
// the runtime will execute this BackgroundInvoke as soon as possible.
218222
uint64 invoke_time = 4;
223+
224+
repeated Header headers = 5;
219225
}
220226

221227
// Completable: Yes
@@ -255,3 +261,8 @@ message Failure {
255261
// Contains a concise error message, e.g. Throwable#getMessage() in Java.
256262
string message = 2;
257263
}
264+
265+
message Header {
266+
string key = 1;
267+
string value = 2;
268+
}

0 commit comments

Comments
 (0)