diff options
Diffstat (limited to 'src/helsinki.at/rhimport/conf.go')
-rw-r--r-- | src/helsinki.at/rhimport/conf.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/helsinki.at/rhimport/conf.go b/src/helsinki.at/rhimport/conf.go index 6dcbe84..8e373c0 100644 --- a/src/helsinki.at/rhimport/conf.go +++ b/src/helsinki.at/rhimport/conf.go @@ -45,6 +45,7 @@ type getPasswordRequest struct { type Config struct { configfile string RDXportEndpoint string + TempDir string db_host string db_user string db_passwd string @@ -142,7 +143,7 @@ func (self *Config) Cleanup() { } } -func NewConfig(configfile, rdxport_endpoint *string) (conf *Config, err error) { +func NewConfig(configfile, rdxport_endpoint, temp_dir *string) (conf *Config, err error) { conf = new(Config) conf.configfile = *configfile if err = conf.read_config_file(); err != nil { @@ -151,6 +152,7 @@ func NewConfig(configfile, rdxport_endpoint *string) (conf *Config, err error) { conf.quit = make(chan bool) conf.done = make(chan bool) conf.RDXportEndpoint = *rdxport_endpoint + conf.TempDir = *temp_dir conf.password_cache = make(map[string]string) conf.getPasswordChan = make(chan getPasswordRequest) |