Skip to content

Commit

Permalink
GetStateKeysEntryMessage (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper authored Feb 8, 2024
1 parent 635515d commit 4251b0e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dev/restate/service/protocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,20 @@ message ClearStateEntryMessage {
message ClearAllStateEntryMessage {
}

// Completable: Yes
// Fallible: No
// Type: 0x0800 + 4
message GetStateKeysEntryMessage {
message StateKeys {
repeated bytes keys = 1;
}

oneof result {
StateKeys value = 14;
Failure failure = 15;
};
}

// ------ Syscalls ------

// Completable: Yes
Expand Down
1 change: 1 addition & 0 deletions service-invocation-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ descriptions in [`protocol.proto`](dev/restate/service/protocol.proto).
| ------------------------------- | -------- | ----------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `PollInputStreamEntryMessage` | `0x0400` | Yes | No | Carries the invocation input message(s) of the invocation. Note: currently the runtime always sends this entry completed, but this may change in future. |
| `GetStateEntryMessage` | `0x0800` | Yes | No | Get the value of a service instance state key. |
| `GetStateKeysEntryMessage` | `0x0804` | Yes | No | Get all the known state keys for this service instance. Note: the completion value for this message is a protobuf of type `GetStateKeysEntryMessage.StateKeys`. |
| `SleepEntryMessage` | `0x0C00` | Yes | No | Initiate a timer that completes after the given time. |
| `InvokeEntryMessage` | `0x0C01` | Yes | Yes | Invoke another Restate service. |
| `AwakeableEntryMessage` | `0x0C03` | Yes | No | Arbitrary result container which can be completed from another service, given a specific id. See [Awakeable identifier](#awakeable-identifier) for more details. |
Expand Down

0 comments on commit 4251b0e

Please sign in to comment.