pulsar_sdk 0.8.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +51 -0
  3. data/Gemfile +6 -0
  4. data/LICENSE +201 -0
  5. data/README.md +107 -0
  6. data/Rakefile +2 -0
  7. data/bin/console +15 -0
  8. data/bin/setup +8 -0
  9. data/lib/protobuf/pulsar_api.pb.rb +710 -0
  10. data/lib/protobuf/pulsar_api.proto +934 -0
  11. data/lib/protobuf/validate.rb +41 -0
  12. data/lib/pulsar_admin.rb +14 -0
  13. data/lib/pulsar_admin/api.rb +215 -0
  14. data/lib/pulsar_sdk.rb +55 -0
  15. data/lib/pulsar_sdk/client.rb +13 -0
  16. data/lib/pulsar_sdk/client/connection.rb +371 -0
  17. data/lib/pulsar_sdk/client/connection_pool.rb +79 -0
  18. data/lib/pulsar_sdk/client/rpc.rb +67 -0
  19. data/lib/pulsar_sdk/consumer.rb +13 -0
  20. data/lib/pulsar_sdk/consumer/base.rb +148 -0
  21. data/lib/pulsar_sdk/consumer/manager.rb +127 -0
  22. data/lib/pulsar_sdk/consumer/message_tracker.rb +86 -0
  23. data/lib/pulsar_sdk/options.rb +6 -0
  24. data/lib/pulsar_sdk/options/base.rb +10 -0
  25. data/lib/pulsar_sdk/options/connection.rb +51 -0
  26. data/lib/pulsar_sdk/options/consumer.rb +34 -0
  27. data/lib/pulsar_sdk/options/producer.rb +14 -0
  28. data/lib/pulsar_sdk/options/reader.rb +7 -0
  29. data/lib/pulsar_sdk/options/tls.rb +8 -0
  30. data/lib/pulsar_sdk/producer.rb +14 -0
  31. data/lib/pulsar_sdk/producer/base.rb +154 -0
  32. data/lib/pulsar_sdk/producer/manager.rb +67 -0
  33. data/lib/pulsar_sdk/producer/message.rb +47 -0
  34. data/lib/pulsar_sdk/producer/router.rb +100 -0
  35. data/lib/pulsar_sdk/protocol.rb +8 -0
  36. data/lib/pulsar_sdk/protocol/frame.rb +53 -0
  37. data/lib/pulsar_sdk/protocol/lookup.rb +55 -0
  38. data/lib/pulsar_sdk/protocol/message.rb +55 -0
  39. data/lib/pulsar_sdk/protocol/namespace.rb +22 -0
  40. data/lib/pulsar_sdk/protocol/partitioned.rb +54 -0
  41. data/lib/pulsar_sdk/protocol/reader.rb +67 -0
  42. data/lib/pulsar_sdk/protocol/structure.rb +93 -0
  43. data/lib/pulsar_sdk/protocol/topic.rb +74 -0
  44. data/lib/pulsar_sdk/tweaks.rb +10 -0
  45. data/lib/pulsar_sdk/tweaks/assign_attributes.rb +30 -0
  46. data/lib/pulsar_sdk/tweaks/base_command.rb +66 -0
  47. data/lib/pulsar_sdk/tweaks/binary_heap.rb +133 -0
  48. data/lib/pulsar_sdk/tweaks/clean_inspect.rb +15 -0
  49. data/lib/pulsar_sdk/tweaks/time_at_microsecond.rb +27 -0
  50. data/lib/pulsar_sdk/tweaks/timeout_queue.rb +52 -0
  51. data/lib/pulsar_sdk/tweaks/wait_map.rb +81 -0
  52. data/lib/pulsar_sdk/version.rb +3 -0
  53. data/pulsar_sdk.gemspec +31 -0
  54. metadata +151 -0
metadata ADDED
@@ -0,0 +1,151 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pulsar_sdk
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.8
5
+ platform: ruby
6
+ authors:
7
+ - archfish
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-05-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-protobuf
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.11'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: digest-crc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.17'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.17'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">"
60
+ - !ruby/object:Gem::Version
61
+ version: '10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">"
67
+ - !ruby/object:Gem::Version
68
+ version: '10'
69
+ description: A pure ruby client for Apache Pulsar
70
+ email:
71
+ - weihailang@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - Gemfile
78
+ - LICENSE
79
+ - README.md
80
+ - Rakefile
81
+ - bin/console
82
+ - bin/setup
83
+ - lib/protobuf/pulsar_api.pb.rb
84
+ - lib/protobuf/pulsar_api.proto
85
+ - lib/protobuf/validate.rb
86
+ - lib/pulsar_admin.rb
87
+ - lib/pulsar_admin/api.rb
88
+ - lib/pulsar_sdk.rb
89
+ - lib/pulsar_sdk/client.rb
90
+ - lib/pulsar_sdk/client/connection.rb
91
+ - lib/pulsar_sdk/client/connection_pool.rb
92
+ - lib/pulsar_sdk/client/rpc.rb
93
+ - lib/pulsar_sdk/consumer.rb
94
+ - lib/pulsar_sdk/consumer/base.rb
95
+ - lib/pulsar_sdk/consumer/manager.rb
96
+ - lib/pulsar_sdk/consumer/message_tracker.rb
97
+ - lib/pulsar_sdk/options.rb
98
+ - lib/pulsar_sdk/options/base.rb
99
+ - lib/pulsar_sdk/options/connection.rb
100
+ - lib/pulsar_sdk/options/consumer.rb
101
+ - lib/pulsar_sdk/options/producer.rb
102
+ - lib/pulsar_sdk/options/reader.rb
103
+ - lib/pulsar_sdk/options/tls.rb
104
+ - lib/pulsar_sdk/producer.rb
105
+ - lib/pulsar_sdk/producer/base.rb
106
+ - lib/pulsar_sdk/producer/manager.rb
107
+ - lib/pulsar_sdk/producer/message.rb
108
+ - lib/pulsar_sdk/producer/router.rb
109
+ - lib/pulsar_sdk/protocol.rb
110
+ - lib/pulsar_sdk/protocol/frame.rb
111
+ - lib/pulsar_sdk/protocol/lookup.rb
112
+ - lib/pulsar_sdk/protocol/message.rb
113
+ - lib/pulsar_sdk/protocol/namespace.rb
114
+ - lib/pulsar_sdk/protocol/partitioned.rb
115
+ - lib/pulsar_sdk/protocol/reader.rb
116
+ - lib/pulsar_sdk/protocol/structure.rb
117
+ - lib/pulsar_sdk/protocol/topic.rb
118
+ - lib/pulsar_sdk/tweaks.rb
119
+ - lib/pulsar_sdk/tweaks/assign_attributes.rb
120
+ - lib/pulsar_sdk/tweaks/base_command.rb
121
+ - lib/pulsar_sdk/tweaks/binary_heap.rb
122
+ - lib/pulsar_sdk/tweaks/clean_inspect.rb
123
+ - lib/pulsar_sdk/tweaks/time_at_microsecond.rb
124
+ - lib/pulsar_sdk/tweaks/timeout_queue.rb
125
+ - lib/pulsar_sdk/tweaks/wait_map.rb
126
+ - lib/pulsar_sdk/version.rb
127
+ - pulsar_sdk.gemspec
128
+ homepage: https://github.com/archfish/pulsar_sdk
129
+ licenses:
130
+ - Apache License 2.0
131
+ metadata: {}
132
+ post_install_message:
133
+ rdoc_options: []
134
+ require_paths:
135
+ - lib
136
+ required_ruby_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ requirements: []
147
+ rubygems_version: 3.0.8
148
+ signing_key:
149
+ specification_version: 4
150
+ summary: A pure ruby client for Apache Pulsar
151
+ test_files: []