// GetData returns data by path
GetData returns data by path
// GetData returns data by path
func (adapter *BaseAdapter) GetData(pathList []string) (data map[string]interface{}, err error) {
	adapter.Lock()
	defer adapter.Unlock()
	data = make(map[string]interface{})
	for _, path := range pathList {
		if _, ok := adapter.Data[path]; !ok {
			return data, fmt.Errorf("path %s doesn't exits", path)
		}
		data[path] = adapter.Data[path].Value
	}
	return data, nil
}
func ( adapter * BaseAdapter ) GetData ( pathList [ ] string ) ( data map [ string ] interface { } , err error ) { adapter . Lock ( ) defer adapter . Unlock ( ) data = make ( map [ string ] interface { } ) for _ , path := range pathList { if _ , ok := adapter . Data [ path ] ; ! ok { return data , fmt . Errorf ( " " , path ) } data [ path ] = adapter . Data [ path ] . Value } return data , nil }
GetData returns data by path
GetData returns data by path