(response *http.Response)
| 102 | } |
| 103 | |
| 104 | func ParseResponse(response *http.Response) (map[string]interface{}, error) { |
| 105 | var result map[string]interface{} |
| 106 | body, err := io.ReadAll(response.Body) |
| 107 | if err == nil { |
| 108 | err = json.Unmarshal(body, &result) |
| 109 | } |
| 110 | return result, err |
| 111 | } |
| 112 | |
| 113 | func GetDatasources(db string, table string, orgID string) ([]string, error) { |
| 114 | var datasources []string |
no test coverage detected