From 116c210c25538ec34102301e2209244965d4190e Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Sun, 23 Nov 2014 15:05:51 +0000 Subject: [PATCH] Remove old config package --- config/config.go | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 config/config.go diff --git a/config/config.go b/config/config.go deleted file mode 100644 index c46be36..0000000 --- a/config/config.go +++ /dev/null @@ -1,29 +0,0 @@ -package config - -import ( - "github.com/ian-kent/Go-MailHog/data" - "github.com/ian-kent/Go-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 *data.Message - Storage storage.Storage - Assets func(asset string) ([]byte, error) -}