add readremoteconfig for cases when there are no local configuration files

This commit is contained in:
Brian Ketelsen 2014-10-27 10:14:45 -04:00
parent f8939d9229
commit c33e690687
1 changed files with 7 additions and 1 deletions

View File

@ -468,7 +468,13 @@ func ReadInConfig() error {
MarshallReader(bytes.NewReader(file), config)
return nil
}
func ReadRemoteConfig() error {
err := getKeyValueConfig()
if err != nil {
return err
}
return nil
}
func MarshallReader(in io.Reader, c map[string]interface{}) {
buf := new(bytes.Buffer)
buf.ReadFrom(in)