Allow to define tls and hostname outside of module configuration

This allows to set hostname or tls for all modules, making it possible
slightly cleaner configuration.
This commit is contained in:
fox.cpp 2019-03-23 19:22:27 +03:00 committed by emersion
parent 63bf1a1867
commit 09acaeff39
6 changed files with 68 additions and 42 deletions

View file

@ -33,7 +33,7 @@ func (sqlm *SQLMail) Version() string {
return sqlmail.VersionStr
}
func NewSQLMail(instName string, cfg config.Node) (module.Module, error) {
func NewSQLMail(instName string, globalCfg map[string][]string, cfg config.Node) (module.Module, error) {
var driver string
var dsn string
var appendlimitSet bool