2014-04-23 23:22:50 +00:00
|
|
|
package config
|
2014-04-19 11:19:17 +00:00
|
|
|
|
|
|
|
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",
|
2014-04-19 11:19:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
type Config struct {
|
2014-04-20 14:35:59 +00:00
|
|
|
SMTPBindAddr string
|
|
|
|
HTTPBindAddr string
|
2014-04-19 11:19:17 +00:00
|
|
|
Hostname string
|
2014-04-20 14:35:59 +00:00
|
|
|
MongoUri string
|
|
|
|
MongoDb string
|
|
|
|
MongoColl string
|
2014-04-23 23:22:50 +00:00
|
|
|
Storage interface{}
|
2014-04-27 15:06:58 +00:00
|
|
|
Assets func(asset string) ([]byte, error)
|
2014-04-19 11:19:17 +00:00
|
|
|
}
|