mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-24 06:44:04 +00:00
28 lines
580 B
Go
28 lines
580 B
Go
package config
|
|
|
|
import (
|
|
"github.com/ian-kent/Go-MailHog/mailhog/storage"
|
|
)
|
|
|
|
func DefaultConfig() *Config {
|
|
return &Config{
|
|
SMTPBindAddr: "0.0.0.0:1025",
|
|
HTTPBindAddr: "0.0.0.0:8025",
|
|
Hostname: "mailhog.example",
|
|
MongoUri: "127.0.0.1:27017",
|
|
MongoDb: "mailhog",
|
|
MongoColl: "messages",
|
|
}
|
|
}
|
|
|
|
type Config struct {
|
|
SMTPBindAddr string
|
|
HTTPBindAddr string
|
|
Hostname string
|
|
MongoUri string
|
|
MongoDb string
|
|
MongoColl string
|
|
MessageChan chan interface{}
|
|
Storage storage.Storage
|
|
Assets func(asset string) ([]byte, error)
|
|
}
|