MailHog/mailhog/config/config.go

25 lines
514 B
Go
Raw Normal View History

2014-04-23 23:22:50 +00:00
package config
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
MongoUri string
MongoDb string
MongoColl string
MessageChan chan interface{}
Storage interface{}
Assets func(asset string) ([]byte, error)
}