Move some packages

This commit is contained in:
Ian Kent 2014-12-07 18:57:05 +00:00
parent 216eb8148d
commit 537f51a6f6
5 changed files with 5 additions and 6 deletions

View file

@ -6,9 +6,9 @@ import (
"github.com/ian-kent/Go-MailHog/MailHog-Server/api" "github.com/ian-kent/Go-MailHog/MailHog-Server/api"
"github.com/ian-kent/Go-MailHog/MailHog-Server/config" "github.com/ian-kent/Go-MailHog/MailHog-Server/config"
"github.com/ian-kent/Go-MailHog/MailHog-Server/smtp"
"github.com/ian-kent/Go-MailHog/MailHog-UI/assets" "github.com/ian-kent/Go-MailHog/MailHog-UI/assets"
"github.com/ian-kent/Go-MailHog/http" "github.com/ian-kent/Go-MailHog/http"
"github.com/ian-kent/Go-MailHog/smtp"
"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"
) )

View file

@ -1,4 +1,4 @@
package server package smtp
// http://www.rfc-editor.org/rfc/rfc5321.txt // http://www.rfc-editor.org/rfc/rfc5321.txt

View file

@ -1,4 +1,4 @@
package server package smtp
import ( import (
"errors" "errors"

View file

@ -6,7 +6,6 @@ import (
"net" "net"
"github.com/ian-kent/Go-MailHog/MailHog-Server/config" "github.com/ian-kent/Go-MailHog/MailHog-Server/config"
"github.com/ian-kent/Go-MailHog/smtp/server"
) )
func Listen(cfg *config.Config, exitCh chan int) *net.TCPListener { func Listen(cfg *config.Config, exitCh chan int) *net.TCPListener {
@ -25,7 +24,7 @@ func Listen(cfg *config.Config, exitCh chan int) *net.TCPListener {
} }
defer conn.Close() defer conn.Close()
go server.Accept( go Accept(
conn.(*net.TCPConn).RemoteAddr().String(), conn.(*net.TCPConn).RemoteAddr().String(),
io.ReadWriteCloser(conn), io.ReadWriteCloser(conn),
cfg.Storage, cfg.Storage,

View file

@ -6,10 +6,10 @@ import (
"github.com/ian-kent/Go-MailHog/MailHog-Server/api" "github.com/ian-kent/Go-MailHog/MailHog-Server/api"
"github.com/ian-kent/Go-MailHog/MailHog-Server/config" "github.com/ian-kent/Go-MailHog/MailHog-Server/config"
"github.com/ian-kent/Go-MailHog/MailHog-Server/smtp"
"github.com/ian-kent/Go-MailHog/MailHog-UI/assets" "github.com/ian-kent/Go-MailHog/MailHog-UI/assets"
"github.com/ian-kent/Go-MailHog/MailHog-UI/web" "github.com/ian-kent/Go-MailHog/MailHog-UI/web"
"github.com/ian-kent/Go-MailHog/http" "github.com/ian-kent/Go-MailHog/http"
"github.com/ian-kent/Go-MailHog/smtp"
"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"
) )