Skip to content

Commit f760b30

Browse files
authored
Update protos (pubsub routing & actor ttls) & version bump to 0.7.1-alpha.0 (#56)
1 parent 488d07c commit f760b30

4 files changed

Lines changed: 31 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dapr"
3-
version = "0.7.0"
3+
version = "0.7.1-alpha.0"
44
authors = ["dapr.io"]
55
edition = "2018"
66
license-file = "LICENSE"

dapr/proto/runtime/v1/appcallback.proto

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ message TopicEventRequest {
7070

7171
// The name of the pubsub the publisher sent to.
7272
string pubsub_name = 8;
73+
74+
// The matching path from TopicSubscription/routes (if specified) for this event.
75+
// This value is used by OnTopicEvent to "switch" inside the handler.
76+
string path = 9;
7377
}
7478

7579
// TopicEventResponse is response from app on published message
@@ -144,6 +148,30 @@ message TopicSubscription {
144148

145149
// The optional properties used for this topic's subscription e.g. session id
146150
map<string,string> metadata = 3;
151+
152+
// The optional routing rules to match against. In the gRPC interface, OnTopicEvent
153+
// is still invoked but the matching path is sent in the TopicEventRequest.
154+
TopicRoutes routes = 5;
155+
}
156+
157+
message TopicRoutes {
158+
// The list of rules for this topic.
159+
repeated TopicRule rules = 1;
160+
161+
// The default path for this topic.
162+
string default = 2;
163+
}
164+
165+
message TopicRule {
166+
// The optional CEL expression used to match the event.
167+
// If the match is not specified, then the route is considered
168+
// the default.
169+
string match = 1;
170+
171+
// The path used to identify matches for this subscription.
172+
// This value is passed in TopicEventRequest and used by OnTopicEvent to "switch"
173+
// inside the handler.
174+
string path = 2;
147175
}
148176

149177
// ListInputBindingsResponse is the message including the list of input bindings.

dapr/proto/runtime/v1/dapr.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ message RegisterActorTimerRequest {
319319
string period = 5;
320320
string callback = 6;
321321
bytes data = 7;
322+
string ttl = 8;
322323
}
323324

324325
// UnregisterActorTimerRequest is the message to unregister an actor timer
@@ -336,6 +337,7 @@ message RegisterActorReminderRequest {
336337
string due_time = 4;
337338
string period = 5;
338339
bytes data = 6;
340+
string ttl = 7;
339341
}
340342

341343
// UnregisterActorReminderRequest is the message to unregister an actor reminder.

update-protos.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)