From c5b02921be2a6364f93ce826c7bb1b34aea69ff9 Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Wed, 24 Dec 2014 17:12:22 +0000 Subject: [PATCH] Remove http package --- MailHog/main.go | 2 +- http/server.go | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 http/server.go diff --git a/MailHog/main.go b/MailHog/main.go index d407c76..f96e968 100644 --- a/MailHog/main.go +++ b/MailHog/main.go @@ -4,7 +4,6 @@ import ( "flag" "os" - "github.com/ian-kent/Go-MailHog/http" "github.com/ian-kent/go-log/log" gotcha "github.com/ian-kent/gotcha/app" "github.com/mailhog/MailHog-Server/api" @@ -12,6 +11,7 @@ import ( "github.com/mailhog/MailHog-Server/smtp" "github.com/mailhog/MailHog-UI/assets" "github.com/mailhog/MailHog-UI/web" + "github.com/mailhog/http" ) var conf *config.Config diff --git a/http/server.go b/http/server.go deleted file mode 100644 index e1606b4..0000000 --- a/http/server.go +++ /dev/null @@ -1,21 +0,0 @@ -package http - -import ( - "github.com/ian-kent/go-log/log" - gotcha "github.com/ian-kent/gotcha/app" - "github.com/mailhog/MailHog-Server/config" -) - -func Listen(cfg *config.Config, Asset func(string) ([]byte, error), exitCh chan int, registerCallback func(*gotcha.App)) { - log.Info("[HTTP] Binding to address: %s", cfg.HTTPBindAddr) - - var app = gotcha.Create(Asset) - app.Config.Listen = cfg.HTTPBindAddr - - registerCallback(app) - - app.Start() - - <-make(chan int) - exitCh <- 1 -}