From 9cc9b88d264080966a8b778a216ab44de8812b4a Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Wed, 9 Oct 2013 09:41:02 -0400 Subject: [PATCH] thinking about how to do a stand alone web server --- server/server.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/server/server.go b/server/server.go index a10480a..f0d1885 100644 --- a/server/server.go +++ b/server/server.go @@ -1,13 +1,16 @@ package server import ( - "github.com/gorilla/mux" + "github.com/gorilla/mux" + "github.com/vbatts/imgsrv/config" "github.com/vbatts/imgsrv/dbutil" ) type Web struct { - Router *mux.Router - Store dbutil.Util + Router *mux.Router + Store dbutil.Util } - +func New(c config.Config) *Web { + return &Web{} +}