File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " dapr"
3- version = " 0.7.0"
3+ version = " 0.7.1-alpha. 0"
44authors = [" dapr.io" ]
55edition = " 2018"
66license-file = " LICENSE"
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments