MCPcopy Create free account
hub / github.com/deepflowio/deepflow / ParseResponse

Function ParseResponse

server/querier/engine/clickhouse/common/utils.go:104–111  ·  view source on GitHub ↗
(response *http.Response)

Source from the content-addressed store, hash-verified

102}
103
104func 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
113func GetDatasources(db string, table string, orgID string) ([]string, error) {
114 var datasources []string

Callers 2

GetDatasourcesFunction · 0.70
GetDatasourceIntervalFunction · 0.70

Calls 1

UnmarshalMethod · 0.65

Tested by

no test coverage detected