trisulrp 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/trisulrp/trp.pb.rb +29 -0
- data/lib/trisulrp/trp.proto +30 -2
- data/trisulrp.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.6
|
data/lib/trisulrp/trp.pb.rb
CHANGED
@@ -60,6 +60,8 @@ module TRP
|
|
60
60
|
class KeyLookupResponse < ::ProtocolBuffers::Message; end
|
61
61
|
class GrepRequest < ::ProtocolBuffers::Message; end
|
62
62
|
class GrepResponse < ::ProtocolBuffers::Message; end
|
63
|
+
class KeySpaceRequest < ::ProtocolBuffers::Message; end
|
64
|
+
class KeySpaceResponse < ::ProtocolBuffers::Message; end
|
63
65
|
|
64
66
|
# enums
|
65
67
|
module AuthLevel
|
@@ -197,6 +199,8 @@ module TRP
|
|
197
199
|
KEY_LOOKUP_RESPONSE = 51
|
198
200
|
GREP_REQUEST = 60
|
199
201
|
GREP_RESPONSE = 61
|
202
|
+
KEYSPACE_REQUEST = 70
|
203
|
+
KEYSPACE_RESPONSE = 71
|
200
204
|
end
|
201
205
|
|
202
206
|
required ::TRP::Message::Command, :trp_command, 1
|
@@ -244,6 +248,8 @@ module TRP
|
|
244
248
|
optional ::TRP::KeyLookupResponse, :key_lookup_response, 50
|
245
249
|
optional ::TRP::GrepRequest, :grep_request, 51
|
246
250
|
optional ::TRP::GrepResponse, :grep_response, 52
|
251
|
+
optional ::TRP::KeySpaceRequest, :keyspace_request, 53
|
252
|
+
optional ::TRP::KeySpaceResponse, :keyspace_response, 54
|
247
253
|
end
|
248
254
|
|
249
255
|
class HelloRequest < ::ProtocolBuffers::Message
|
@@ -648,4 +654,27 @@ module TRP
|
|
648
654
|
repeated :string, :hints, 4
|
649
655
|
end
|
650
656
|
|
657
|
+
class KeySpaceRequest < ::ProtocolBuffers::Message
|
658
|
+
# forward declarations
|
659
|
+
class KeySpace < ::ProtocolBuffers::Message; end
|
660
|
+
|
661
|
+
# nested messages
|
662
|
+
class KeySpace < ::ProtocolBuffers::Message
|
663
|
+
required :string, :from, 1
|
664
|
+
required :string, :to, 2
|
665
|
+
end
|
666
|
+
|
667
|
+
optional :int64, :context, 1, :default => 0
|
668
|
+
required :string, :counter_group, 2
|
669
|
+
required ::TRP::TimeInterval, :time_interval, 3
|
670
|
+
optional :int64, :maxitems, 4, :default => 100
|
671
|
+
repeated ::TRP::KeySpaceRequest::KeySpace, :spaces, 5
|
672
|
+
end
|
673
|
+
|
674
|
+
class KeySpaceResponse < ::ProtocolBuffers::Message
|
675
|
+
optional :int64, :context, 1
|
676
|
+
optional :string, :counter_group, 2
|
677
|
+
repeated :string, :hits, 3
|
678
|
+
end
|
679
|
+
|
651
680
|
end
|
data/lib/trisulrp/trp.proto
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
// Trisul Remote Protocol (TRP) definition
|
2
2
|
// Based on Google Protocol Buffers
|
3
3
|
// (c) 2010-11, Unleash Networks (http://www.unleashnetworks.com)
|
4
|
-
// $Rev:
|
4
|
+
// $Rev: 5595 $
|
5
5
|
package TRP;
|
6
6
|
|
7
7
|
message Timestamp {
|
@@ -130,6 +130,8 @@ message Message {
|
|
130
130
|
KEY_LOOKUP_RESPONSE=51;
|
131
131
|
GREP_REQUEST=60;
|
132
132
|
GREP_RESPONSE=61;
|
133
|
+
KEYSPACE_REQUEST=70;
|
134
|
+
KEYSPACE_RESPONSE=71;
|
133
135
|
}
|
134
136
|
|
135
137
|
required Command trp_command=1;
|
@@ -177,6 +179,8 @@ message Message {
|
|
177
179
|
optional KeyLookupResponse key_lookup_response=50;
|
178
180
|
optional GrepRequest grep_request=51;
|
179
181
|
optional GrepResponse grep_response=52;
|
182
|
+
optional KeySpaceRequest keyspace_request=53;
|
183
|
+
optional KeySpaceResponse keyspace_response=54;
|
180
184
|
}
|
181
185
|
|
182
186
|
///////////////////////////////
|
@@ -614,7 +618,6 @@ message ResourceGroupResponse {
|
|
614
618
|
optional int64 context=1;
|
615
619
|
required string resource_group=2;
|
616
620
|
repeated ResourceID resources=3;
|
617
|
-
repeated string hints=4;
|
618
621
|
}
|
619
622
|
|
620
623
|
|
@@ -656,3 +659,28 @@ message GrepResponse {
|
|
656
659
|
repeated string hints=4;
|
657
660
|
}
|
658
661
|
|
662
|
+
|
663
|
+
////////////////////////////////////
|
664
|
+
// KeySpaceRequest
|
665
|
+
message KeySpaceRequest {
|
666
|
+
optional int64 context=1[default=0];
|
667
|
+
required string counter_group=2;
|
668
|
+
required TimeInterval time_interval=3;
|
669
|
+
optional int64 maxitems=4 [default=100];
|
670
|
+
|
671
|
+
message KeySpace {
|
672
|
+
required string from=1;
|
673
|
+
required string to=2;
|
674
|
+
}
|
675
|
+
|
676
|
+
repeated KeySpace spaces=5;
|
677
|
+
}
|
678
|
+
|
679
|
+
/////////////////////////////////////
|
680
|
+
// KeySpaceResponse
|
681
|
+
message KeySpaceResponse {
|
682
|
+
optional int64 context=1;
|
683
|
+
optional string counter_group=2;
|
684
|
+
repeated string hits=3;
|
685
|
+
}
|
686
|
+
|
data/trisulrp.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "trisulrp"
|
8
|
-
s.version = "1.5.
|
8
|
+
s.version = "1.5.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["vivek"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-06-14"
|
13
13
|
s.description = "This gem deals about the trisul remote protocol"
|
14
14
|
s.email = "vivek_rajagopal@yahoo.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trisulrp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-protocol-buffers
|
@@ -158,7 +158,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '0'
|
159
159
|
segments:
|
160
160
|
- 0
|
161
|
-
hash:
|
161
|
+
hash: -843059936349621281
|
162
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
163
|
none: false
|
164
164
|
requirements:
|