From 01e9a34952bd6ddd383680b0ca2312e476ad07a6 Mon Sep 17 00:00:00 2001 From: horus_arch Date: Sun, 19 Apr 2015 22:09:52 +0200 Subject: Initial commit. --- server/health.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 server/health.go (limited to 'server/health.go') diff --git a/server/health.go b/server/health.go new file mode 100644 index 0000000..f59d027 --- /dev/null +++ b/server/health.go @@ -0,0 +1,14 @@ +package server + +import ( + "fmt" + "net/http" +) + +func healthHandler(w http.ResponseWriter, r *http.Request) { + if r.URL.Path != "/health" { + errorHandler(w, r, http.StatusNotFound) + return + } + fmt.Fprint(w, "TODO") +} -- cgit v1.2.3