We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 839d18e commit ccee1d8Copy full SHA for ccee1d8
src/main/kotlin/App.kt
@@ -1,3 +1,11 @@
1
+import entities.events.Event
2
+import application.presenter.EventConsumer
3
+import application.presenter.EventPublisher
4
+import application.services.EventService
5
+import infrastructure.kafka.KafkaPublisher
6
+import infrastructure.signalr.SignalRClient
7
+
8
9
/*
10
* Copyright (c) 2023. Smart Operating Block
11
*
@@ -7,8 +15,13 @@
15
*/
16
17
/**
- * Template for kotlin projects.
18
+ * The application launcher.
19
12
20
fun main() {
13
- println("Hello World from Kotlin Template")
21
22
+ val publisher: EventPublisher<Event<Any>> = KafkaPublisher()
23
+ val consumer: EventConsumer<String> = SignalRClient()
24
25
+ val service: EventService<String> = EventService(publisher, consumer)
26
+ service.start()
14
27
}
0 commit comments