summaryrefslogtreecommitdiffstats
path: root/Main/Config.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Main/Config.hs')
-rw-r--r--Main/Config.hs29
1 files changed, 29 insertions, 0 deletions
diff --git a/Main/Config.hs b/Main/Config.hs
new file mode 100644
index 0000000..47c12ba
--- /dev/null
+++ b/Main/Config.hs
@@ -0,0 +1,29 @@
+-- |
+-- Module: Main.Config
+-- Copyright: (c) 2014 Tomislav Viljetić
+-- License: BSD3
+-- Maintainer: Tomislav Viljetić <tomislav@viljetic.de>
+--
+
+
+module Main.Config (Config(..), defaultConfig) where
+
+import Network.Wai.Handler.Warp (Port)
+
+
+data Config = Config
+ { cgroupRoot :: FilePath
+ , httpPort :: Port
+ }
+
+
+-- |
+--
+-- > cgroupRoot = "/sys/fs/cgroup"
+-- > httpPort = 8001
+--
+defaultConfig :: Config
+defaultConfig = Config
+ { cgroupRoot = "/sys/fs/cgroup"
+ , httpPort = 8001
+ }