Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial commit of files.

  • Loading branch information...
commit 3d844bae4e26a7cf347670e72b0252d07548000e 0 parents
@technosophos authored
21 Rakefile
@@ -0,0 +1,21 @@
+
+desc "Build the project"
+task :default => ["vala"]
+
+task :vala do
+ puts "Compiling Vala files."
+ FileList['src/core/**/*.vala'].each do |vala|
+ puts vala
+ sh "valac #{vala}"
+ end
+end
+
+# file 'src/core/**/*.vala' do |vala|
+# sh "valac #{vala.name}"
+# end
+
+# desc "Clean up after a build."
+# task :clean
+#
+# desc "Aggressively cleany up after a build."
+# task :clobber
20 src/core/Valhalla.vala
@@ -0,0 +1,20 @@
+/**
+ * Valhalla master server.
+ */
+
+namespace Valhalla;
+
+/**
+ *
+ */
+public class Valhalla : GLib.Object {
+
+ /**
+ *
+ */
+ public Valhalla() {
+
+ }
+
+
+}
35 src/core/Valhalla/Environment.vala
@@ -0,0 +1,35 @@
+namespace Valhalla;
+
+//using Gee;
+
+/**
+ * Based on Ruby Rack, this provides a common environment object for web apps.
+ */
+public class Environment : GLib.Object {
+
+ const string VERSION = "1.0.0";
+
+ public string request_method = null;
+ public string script_name = null;
+ public string path_info = null;
+ public string query_string = null;
+ public string server_name = null;
+ public Gee.HashMap<string,string> http_headers = null;
+ public string url_scheme = null;
+ public gio.stream input = null;
+ public gio.strea errors = null;
+ public bool multithread = false;
+ public bool multiprocess = false;
+ public bool run_once = false;
+ public Valhalla.Session session = null;
+ public Valhalla.Logger logger = null;
+
+ /**
+ *
+ */
+ public Environment() {
+
+ }
+
+
+}
18 src/core/Valhalla/Logger.vala
@@ -0,0 +1,18 @@
+/**
+ *
+ */
+public class Valhalla.Logger : GLib.Object {
+
+ /**
+ *
+ */
+ public Valhalla.Logger() {
+
+ }
+
+ public void info(message, block) {}
+ public void debug(message, block) {}
+ public void warn(message, block) {}
+ public void error(message, block) {}
+ public void fatal(message, block) {}
+}
18 src/core/Valhalla/Response.vala
@@ -0,0 +1,18 @@
+/**
+ *
+ */
+public class Valhalla.Response : GLib.Object {
+
+ public string status;
+ public Gee.HashMap<string, string> headers;
+ public string body;
+
+ /**
+ *
+ */
+ public Response() {
+
+ }
+
+
+}
14 src/core/Valhalla/Session.vala
@@ -0,0 +1,14 @@
+/**
+ *
+ */
+public class Valhalla.Session : GLib.Object {
+
+ /**
+ *
+ */
+ public Valhalla.Session() {
+
+ }
+
+
+}
BIN  valhalla-coming.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 valhalla.tmproj
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>documents</key>
+ <array>
+ <dict>
+ <key>expanded</key>
+ <true/>
+ <key>name</key>
+ <string>Valhalla</string>
+ <key>regexFolderFilter</key>
+ <string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
+ <key>sourceDirectory</key>
+ <string></string>
+ </dict>
+ </array>
+ <key>fileHierarchyDrawerWidth</key>
+ <integer>328</integer>
+ <key>metaData</key>
+ <dict/>
+ <key>showFileHierarchyDrawer</key>
+ <true/>
+ <key>windowFrame</key>
+ <string>{{61, 247}, {805, 811}}</string>
+</dict>
+</plist>
Please sign in to comment.
Something went wrong with that request. Please try again.