evt-consumer-event_store 0.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/consumer/event_store/controls/category.rb +7 -0
- data/lib/consumer/event_store/controls/consumer.rb +17 -0
- data/lib/consumer/event_store/controls/event_data.rb +7 -0
- data/lib/consumer/event_store/controls/handle.rb +7 -0
- data/lib/consumer/event_store/controls/stream.rb +7 -0
- data/lib/consumer/event_store/controls/stream_name.rb +7 -0
- data/lib/consumer/event_store/controls.rb +9 -0
- data/lib/consumer/event_store/event_store.rb +26 -0
- data/lib/consumer/event_store/subscription.rb +17 -0
- data/lib/consumer/event_store.rb +7 -0
- metadata +95 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e918b4970406382c3961fa160eb62193d43f1f68
|
4
|
+
data.tar.gz: 1294478a136bffa93e5a3872e1a280d14c3dfe6f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 01d12cb92c97f3ebbc5a23bf95d843a31f0c65a1b59d19a4402a86dfb5139b3aa2987d0c75e64d9dd7710e569b03f7de7cf2c6f457cdb34231cee9119a8d7af6
|
7
|
+
data.tar.gz: 361700af9fda3d884a578dd4b54ae6d913cb6931acfecae5b810cbe9933e31693f3865212209fedae0e706e9c8671f82b9da8119f79e61ce989883f51db79825
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Consumer
|
2
|
+
module EventStore
|
3
|
+
module Controls
|
4
|
+
module Consumer
|
5
|
+
class Example
|
6
|
+
include ::Consumer::EventStore
|
7
|
+
|
8
|
+
handle Controls::Handle::Example
|
9
|
+
end
|
10
|
+
|
11
|
+
class LogsEvents < ::Consumer::Controls::Consumer::LogsEvents
|
12
|
+
include ::Consumer::EventStore
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'consumer/controls'
|
2
|
+
|
3
|
+
require 'consumer/event_store/controls/category'
|
4
|
+
require 'consumer/event_store/controls/event_data'
|
5
|
+
require 'consumer/event_store/controls/handle'
|
6
|
+
require 'consumer/event_store/controls/stream'
|
7
|
+
require 'consumer/event_store/controls/stream_name'
|
8
|
+
|
9
|
+
require 'consumer/event_store/controls/consumer'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Consumer
|
2
|
+
module EventStore
|
3
|
+
def self.activate
|
4
|
+
Subscription.activate
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.included(cls)
|
8
|
+
cls.class_exec do
|
9
|
+
include Consumer
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def configure(session: nil, batch_size: nil)
|
14
|
+
cycle_timeout = cycle_timeout_milliseconds || Consumer::Subscription::Defaults.cycle_timeout_milliseconds
|
15
|
+
|
16
|
+
long_poll_duration = Rational(cycle_timeout, 1000).ceil
|
17
|
+
|
18
|
+
EventSource::EventStore::HTTP::Get.configure(
|
19
|
+
self,
|
20
|
+
batch_size: batch_size,
|
21
|
+
long_poll_duration: long_poll_duration,
|
22
|
+
session: session
|
23
|
+
)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Consumer
|
2
|
+
module EventStore
|
3
|
+
module Subscription
|
4
|
+
def self.activate
|
5
|
+
Consumer::Subscription.class_exec do
|
6
|
+
prepend StreamName
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
module StreamName
|
11
|
+
def stream_name
|
12
|
+
EventSource::EventStore::HTTP::StreamName.canonize stream
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: evt-consumer-event_store
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- The Eventide Project
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: evt-consumer
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: evt-messaging-event_store
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: test_bench
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: " "
|
56
|
+
email: opensource@eventide-project.org
|
57
|
+
executables: []
|
58
|
+
extensions: []
|
59
|
+
extra_rdoc_files: []
|
60
|
+
files:
|
61
|
+
- lib/consumer/event_store.rb
|
62
|
+
- lib/consumer/event_store/controls.rb
|
63
|
+
- lib/consumer/event_store/controls/category.rb
|
64
|
+
- lib/consumer/event_store/controls/consumer.rb
|
65
|
+
- lib/consumer/event_store/controls/event_data.rb
|
66
|
+
- lib/consumer/event_store/controls/handle.rb
|
67
|
+
- lib/consumer/event_store/controls/stream.rb
|
68
|
+
- lib/consumer/event_store/controls/stream_name.rb
|
69
|
+
- lib/consumer/event_store/event_store.rb
|
70
|
+
- lib/consumer/event_store/subscription.rb
|
71
|
+
homepage: https://github.com/eventide-project/consumer-event-store
|
72
|
+
licenses:
|
73
|
+
- MIT
|
74
|
+
metadata: {}
|
75
|
+
post_install_message:
|
76
|
+
rdoc_options: []
|
77
|
+
require_paths:
|
78
|
+
- lib
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 2.3.3
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
requirements: []
|
90
|
+
rubyforge_project:
|
91
|
+
rubygems_version: 2.6.8
|
92
|
+
signing_key:
|
93
|
+
specification_version: 4
|
94
|
+
summary: Category and stream consumer for EventStore
|
95
|
+
test_files: []
|