aboutsummaryrefslogtreecommitdiffstats
path: root/src/chameleon/config.clj
diff options
context:
space:
mode:
authorAdrian Batos-Parac <adrian.batos-parac@amdocs.com>2018-02-22 14:43:42 -0500
committerAdrian Batos-Parac <adrian.batos-parac@amdocs.com>2018-02-22 14:46:57 -0500
commite023325d3e76a71ac795ebbdb74f5a89756040a7 (patch)
tree63b2816a829c785f3c0329c3ea57ebd3c4f2937d /src/chameleon/config.clj
parent2610df2fc29a9d16bb869f652d4d21caeae4c154 (diff)
Initial Commit of Chameleon
Commit the initial set of code for the Chameleon offering to ONAP Change-Id: Ia58bd49eafc0a3702c17c9cab34d666ed1627ba5 Issue-ID: AAI-797 Signed-off-by: Adrian Batos-Parac <adrian.batos-parac@amdocs.com>
Diffstat (limited to 'src/chameleon/config.clj')
-rw-r--r--src/chameleon/config.clj18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/chameleon/config.clj b/src/chameleon/config.clj
new file mode 100644
index 0000000..4982f4a
--- /dev/null
+++ b/src/chameleon/config.clj
@@ -0,0 +1,18 @@
+(ns chameleon.config
+ (:require [integrant.core :as ig]
+ [chameleon.aai-processor :refer :all]))
+
+(defn config
+ [app-config]
+ (let [conf {
+ :chameleon/event
+ {:event-config (assoc-in (:event-config app-config)
+ [:aai :processor] from-spike)
+ :gallifrey-host (:gallifrey-host app-config)}
+ :chameleon/handler
+ {:gallifrey-host (:gallifrey-host app-config)}
+ :chameleon/http-server
+ {:port (:http-port app-config)
+ :handler (ig/ref :chameleon/handler)}}]
+ (ig/load-namespaces conf)
+ conf))