Remove http package

This commit is contained in:
Ian Kent 2014-12-24 17:12:22 +00:00
parent 37670fbc78
commit c5b02921be
2 changed files with 1 additions and 22 deletions

View file

@ -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

View file

@ -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
}