From cae9938ae5375d5beb2ab9c144edf51c80bb6eb4 Mon Sep 17 00:00:00 2001 From: Francesco Guardiani Date: Tue, 20 Feb 2024 15:25:23 +0100 Subject: [PATCH] Headers (#57) * Add headers fields in StartMessage for the invocation input headers. * Add headers fields in StartMessage in InvokeEntryMessage and BackgroundInvokeEntryMessage. --- dev/restate/service/protocol.proto | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dev/restate/service/protocol.proto b/dev/restate/service/protocol.proto index a2ce02e..97b7f46 100644 --- a/dev/restate/service/protocol.proto +++ b/dev/restate/service/protocol.proto @@ -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 @@ -196,6 +198,8 @@ message InvokeEntryMessage { bytes parameter = 3; + repeated Header headers = 4; + oneof result { bytes value = 14; Failure failure = 15; @@ -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 @@ -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; +}