MailHog/mailhog/config/config.go

29 lines
580 B
Go
Raw Normal View History

2014-04-23 23:22:50 +00:00
package config
import (
"github.com/ian-kent/Go-MailHog/mailhog/storage"
)
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 storage.Storage
Assets func(asset string) ([]byte, error)
}