mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 22:34:04 +00:00
Move some packages
This commit is contained in:
parent
216eb8148d
commit
537f51a6f6
5 changed files with 5 additions and 6 deletions
|
@ -6,9 +6,9 @@ import (
|
|||
|
||||
"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/smtp"
|
||||
"github.com/ian-kent/Go-MailHog/MailHog-UI/assets"
|
||||
"github.com/ian-kent/Go-MailHog/http"
|
||||
"github.com/ian-kent/Go-MailHog/smtp"
|
||||
"github.com/ian-kent/go-log/log"
|
||||
gotcha "github.com/ian-kent/gotcha/app"
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package server
|
||||
package smtp
|
||||
|
||||
// http://www.rfc-editor.org/rfc/rfc5321.txt
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package server
|
||||
package smtp
|
||||
|
||||
import (
|
||||
"errors"
|
|
@ -6,7 +6,6 @@ import (
|
|||
"net"
|
||||
|
||||
"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 {
|
||||
|
@ -25,7 +24,7 @@ func Listen(cfg *config.Config, exitCh chan int) *net.TCPListener {
|
|||
}
|
||||
defer conn.Close()
|
||||
|
||||
go server.Accept(
|
||||
go Accept(
|
||||
conn.(*net.TCPConn).RemoteAddr().String(),
|
||||
io.ReadWriteCloser(conn),
|
||||
cfg.Storage,
|
|
@ -6,10 +6,10 @@ import (
|
|||
|
||||
"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/smtp"
|
||||
"github.com/ian-kent/Go-MailHog/MailHog-UI/assets"
|
||||
"github.com/ian-kent/Go-MailHog/MailHog-UI/web"
|
||||
"github.com/ian-kent/Go-MailHog/http"
|
||||
"github.com/ian-kent/Go-MailHog/smtp"
|
||||
"github.com/ian-kent/go-log/log"
|
||||
gotcha "github.com/ian-kent/gotcha/app"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue