GetE2TInstances(addresses []string) ([]*entities.E2TInstance, error)
GetE2TAddresses() ([]string, error)
+
+ GetGeneralConfiguration() (*entities.GeneralConfiguration, error)
}
/*
return e2tAddresses, err
}
+func (w *rNibReaderInstance) GetGeneralConfiguration() (*entities.GeneralConfiguration, error) {
+ config := &entities.GeneralConfiguration{}
+ key := common.BuildGeneralConfigurationKey()
+
+ err := w.getByKeyAndUnmarshalJson(key, config)
+
+ return config, err
+}
+
func (w *rNibReaderInstance) getByKeyAndUnmarshalJson(key string, entity interface{}) error {
data, err := w.sdl.Get([]string{key})