MailHog/mailhog/config.go

22 lines
379 B
Go
Raw Normal View History

package mailhog
func DefaultConfig() *Config {
return &Config{
2014-04-20 14:35:59 +00:00
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 {
2014-04-20 14:35:59 +00:00
SMTPBindAddr string
HTTPBindAddr string
Hostname string
2014-04-20 14:35:59 +00:00
MongoUri string
MongoDb string
MongoColl string
}