dapr-client 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +22 -5
- data/bin/regen_client.sh +15 -0
- data/dapr.gemspec +1 -1
- data/dapr/proto/common/v1/common.proto +140 -0
- data/dapr/proto/runtime/v1/appcallback.proto +131 -0
- data/dapr/proto/runtime/v1/dapr.proto +155 -0
- data/example.rb +1 -1
- data/examples/app-callback/README.md +20 -0
- data/examples/app-callback/app_callback_example.rb +15 -0
- data/examples/app-callback/app_callback_service.rb +51 -0
- data/examples/invoke-simple/README.md +17 -0
- data/examples/invoke-simple/invoke-caller.rb +19 -0
- data/examples/invoke-simple/invoke-receiver.rb +26 -0
- data/examples/pubsub-simple/README.md +13 -0
- data/examples/pubsub-simple/publisher.rb +15 -0
- data/examples/pubsub-simple/subscriber.rb +28 -0
- data/examples/state-store/README.md +7 -0
- data/examples/state-store/state-store.rb +29 -0
- data/lib/dapr/proto/common/v1/common_pb.rb +87 -0
- data/lib/dapr/proto/runtime/v1/appcallback_pb.rb +62 -0
- data/lib/dapr/proto/runtime/v1/appcallback_services_pb.rb +49 -0
- data/lib/dapr/proto/runtime/v1/dapr_pb.rb +75 -0
- data/lib/dapr/proto/runtime/v1/dapr_services_pb.rb +49 -0
- data/lib/dapr/version.rb +1 -1
- metadata +26 -13
- data/lib/dapr/generated/dapr_pb.rb +0 -99
- data/lib/dapr/generated/dapr_services_pb.rb +0 -29
- data/lib/dapr/generated/daprclient_pb.rb +0 -72
- data/lib/dapr/generated/daprclient_services_pb.rb +0 -27
- data/proto/dapr.proto +0 -108
- data/proto/daprclient.proto +0 -76
data/proto/daprclient.proto
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
|
3
|
-
package daprclient;
|
4
|
-
|
5
|
-
import "google/protobuf/any.proto";
|
6
|
-
import "google/protobuf/empty.proto";
|
7
|
-
import "google/protobuf/duration.proto";
|
8
|
-
|
9
|
-
option java_outer_classname = "DaprClientProtos";
|
10
|
-
option java_package = "io.dapr";
|
11
|
-
|
12
|
-
// User Code definitions
|
13
|
-
service DaprClient {
|
14
|
-
rpc OnInvoke (InvokeEnvelope) returns (google.protobuf.Any) {}
|
15
|
-
rpc GetTopicSubscriptions(google.protobuf.Empty) returns (GetTopicSubscriptionsEnvelope) {}
|
16
|
-
rpc GetBindingsSubscriptions(google.protobuf.Empty) returns (GetBindingsSubscriptionsEnvelope) {}
|
17
|
-
rpc OnBindingEvent(BindingEventEnvelope) returns (BindingResponseEnvelope) {}
|
18
|
-
rpc OnTopicEvent(CloudEventEnvelope) returns (google.protobuf.Empty) {}
|
19
|
-
}
|
20
|
-
|
21
|
-
message CloudEventEnvelope {
|
22
|
-
string id = 1;
|
23
|
-
string source = 2;
|
24
|
-
string type = 3;
|
25
|
-
string specVersion = 4;
|
26
|
-
string dataContentType = 5;
|
27
|
-
string topic = 6;
|
28
|
-
google.protobuf.Any data = 7;
|
29
|
-
}
|
30
|
-
|
31
|
-
message BindingEventEnvelope {
|
32
|
-
string name = 1;
|
33
|
-
google.protobuf.Any data = 2;
|
34
|
-
map<string,string> metadata = 3;
|
35
|
-
}
|
36
|
-
|
37
|
-
message BindingResponseEnvelope {
|
38
|
-
google.protobuf.Any data = 1;
|
39
|
-
repeated string to = 2;
|
40
|
-
repeated State state = 3;
|
41
|
-
string concurrency = 4;
|
42
|
-
}
|
43
|
-
|
44
|
-
message InvokeEnvelope {
|
45
|
-
string method = 1;
|
46
|
-
google.protobuf.Any data = 2;
|
47
|
-
map<string,string> metadata = 3;
|
48
|
-
}
|
49
|
-
|
50
|
-
message GetTopicSubscriptionsEnvelope {
|
51
|
-
repeated string topics = 1;
|
52
|
-
}
|
53
|
-
|
54
|
-
message GetBindingsSubscriptionsEnvelope {
|
55
|
-
repeated string bindings = 1;
|
56
|
-
}
|
57
|
-
|
58
|
-
message State {
|
59
|
-
string key = 1;
|
60
|
-
google.protobuf.Any value = 2;
|
61
|
-
string etag = 3;
|
62
|
-
map<string,string> metadata = 4;
|
63
|
-
StateOptions options = 5;
|
64
|
-
}
|
65
|
-
|
66
|
-
message StateOptions {
|
67
|
-
string concurrency = 1;
|
68
|
-
string consistency = 2;
|
69
|
-
RetryPolicy retryPolicy = 3;
|
70
|
-
}
|
71
|
-
|
72
|
-
message RetryPolicy {
|
73
|
-
int32 threshold = 1;
|
74
|
-
string pattern = 2;
|
75
|
-
google.protobuf.Duration interval = 3;
|
76
|
-
}
|