Skip to content

Commit 81e206e

Browse files
authored
Merge pull request #18 from wcs1only/0.11.0
Update sdk for 0.11.0
2 parents 90c6532 + 770b217 commit 81e206e

File tree

7 files changed

+1296
-169
lines changed

7 files changed

+1296
-169
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ vpath %.proto $(PROTOS_PATH)
1515
all: system-check libdapr.so
1616

1717
libdapr.so : ./src/dapr/proto/common/v1/common.pb.o ./src/dapr/proto/runtime/v1/dapr.pb.o ./src/dapr/proto/runtime/v1/dapr.grpc.pb.o ./src/dapr/proto/runtime/v1/appcallback.pb.o ./src/dapr/proto/runtime/v1/appcallback.grpc.pb.o
18-
-mkdir ./out
18+
-mkdir -p ./out
1919
$(CXX) -shared -Wl,-soname,libdapr.so.0 -o ./out/libdapr.0.2.0.so ./src/dapr/proto/runtime/v1/*.o ./src/dapr/proto/common/v1/*.o
2020

2121
%.o : %.cc

dapr/proto/runtime/v1/appcallback.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ message TopicEventRequest {
7474

7575
// TopicEventResponse is response from app on published message
7676
message TopicEventResponse {
77+
// TopicEventResponseStatus allows apps to have finer control over handling of the message.
78+
enum TopicEventResponseStatus {
79+
// SUCCESS is the default behavior: message is acknowledged and not retried or logged.
80+
SUCCESS = 0;
81+
// RETRY status signals Dapr to retry the message as part of an expected scenario (no warning is logged).
82+
RETRY = 1;
83+
// DROP status signals Dapr to drop the message as part of an unexpected scenario (warning is logged).
84+
DROP = 2;
85+
}
86+
87+
// The list of output bindings.
88+
TopicEventResponseStatus status = 1;
7789
}
7890

7991
// BindingEventRequest represents input bindings event.

dapr/proto/runtime/v1/dapr.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ message GetStateRequest {
6464

6565
// The read consistency of the state store.
6666
common.v1.StateOptions.StateConsistency consistency = 3;
67+
68+
// The metadata which will be sent to state store components.
69+
map<string,string> metadata = 4;
6770
}
6871

6972
// GetBulkStateRequest is the message to get a list of key-value states from specific state store.
@@ -76,6 +79,9 @@ message GetBulkStateRequest {
7679

7780
// The number of parallel operations executed on the state store for a get operation.
7881
int32 parallelism = 3;
82+
83+
// The metadata which will be sent to state store components.
84+
map<string,string> metadata = 4;
7985
}
8086

8187
// GetBulkStateResponse is the response conveying the list of state values.
@@ -96,6 +102,9 @@ message BulkStateItem {
96102
// The entity tag which represents the specific version of data.
97103
// ETag format is defined by the corresponding data store.
98104
string etag = 3;
105+
106+
// The error that was returned from the state store in case of a failed get operation.
107+
string error = 4;
99108
}
100109

101110
// GetStateResponse is the response conveying the state value and etag.
@@ -123,6 +132,9 @@ message DeleteStateRequest {
123132
// State operation options which includes concurrency/
124133
// consistency/retry_policy.
125134
common.v1.StateOptions options = 4;
135+
136+
// The metadata which will be sent to state store components.
137+
map<string,string> metadata = 5;
126138
}
127139

128140
// SaveStateRequest is the message to save multiple states into state store.

src/dapr/proto/runtime/v1/appcallback.pb.cc

Lines changed: 126 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)