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 d68adc0 commit 0ae4043Copy full SHA for 0ae4043
src/main/kotlin/application/presenter/EventParser.kt
@@ -0,0 +1,23 @@
1
+/*
2
+ * Copyright (c) 2023. Smart Operating Block
3
+ *
4
+ * Use of this source code is governed by an MIT-style
5
+ * license that can be found in the LICENSE file or at
6
+ * https://opensource.org/licenses/MIT.
7
+ */
8
+
9
+package application.presenter
10
11
+import entities.events.Event
12
13
+/**
14
+ * The parser has the responsibility to parse the input event in order to propagate the correct event to microservices.
15
16
+interface EventParser<in E> {
17
18
+ /**
19
+ * The function to parse the event.
20
+ * @param inputEvent the input event.
21
22
+ fun parseEvent(inputEvent: E): Event<Any>
23
+}
0 commit comments