Skip to content

Commit

Permalink
Headers (#57)
Browse files Browse the repository at this point in the history
* Add headers fields in StartMessage for the invocation input headers.
* Add headers fields in StartMessage in InvokeEntryMessage and BackgroundInvokeEntryMessage.
  • Loading branch information
slinkydeveloper authored Feb 20, 2024
1 parent 4251b0e commit cae9938
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dev/restate/service/protocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ message StartMessage {
// protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated StateEntry state_map = 4;
bool partial_state = 5;

repeated Header headers = 6;
}

// Type: 0x0000 + 1
Expand Down Expand Up @@ -196,6 +198,8 @@ message InvokeEntryMessage {

bytes parameter = 3;

repeated Header headers = 4;

oneof result {
bytes value = 14;
Failure failure = 15;
Expand All @@ -216,6 +220,8 @@ message BackgroundInvokeEntryMessage {
// If this value is not set, equal to 0, or past in time,
// the runtime will execute this BackgroundInvoke as soon as possible.
uint64 invoke_time = 4;

repeated Header headers = 5;
}

// Completable: Yes
Expand Down Expand Up @@ -255,3 +261,8 @@ message Failure {
// Contains a concise error message, e.g. Throwable#getMessage() in Java.
string message = 2;
}

message Header {
string key = 1;
string value = 2;
}

0 comments on commit cae9938

Please sign in to comment.