mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-27 16:24:04 +00:00
Remove http package
This commit is contained in:
parent
37670fbc78
commit
c5b02921be
2 changed files with 1 additions and 22 deletions
|
@ -4,7 +4,6 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/ian-kent/Go-MailHog/http"
|
|
||||||
"github.com/ian-kent/go-log/log"
|
"github.com/ian-kent/go-log/log"
|
||||||
gotcha "github.com/ian-kent/gotcha/app"
|
gotcha "github.com/ian-kent/gotcha/app"
|
||||||
"github.com/mailhog/MailHog-Server/api"
|
"github.com/mailhog/MailHog-Server/api"
|
||||||
|
@ -12,6 +11,7 @@ import (
|
||||||
"github.com/mailhog/MailHog-Server/smtp"
|
"github.com/mailhog/MailHog-Server/smtp"
|
||||||
"github.com/mailhog/MailHog-UI/assets"
|
"github.com/mailhog/MailHog-UI/assets"
|
||||||
"github.com/mailhog/MailHog-UI/web"
|
"github.com/mailhog/MailHog-UI/web"
|
||||||
|
"github.com/mailhog/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
var conf *config.Config
|
var conf *config.Config
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
Loading…
Reference in a new issue