MCPcopy
hub / github.com/cloudflare/cloudflared / parseResponse

Function parseResponse

cfapi/base_client.go:128–135  ·  view source on GitHub ↗
(reader io.Reader, data interface{})

Source from the content-addressed store, hash-verified

126}
127
128func parseResponse(reader io.Reader, data interface{}) error {
129 result, err := parseResponseEnvelope(reader)
130 if err != nil {
131 return err
132 }
133
134 return parseResponseBody(result, data)
135}
136
137func parseResponseBody(result *response, data interface{}) error {
138 // At this point we know the API call succeeded, so, parse out the inner

Callers 11

UnmarshalResultMethod · 0.85
UnmarshalResultMethod · 0.85
parseListVnetsFunction · 0.85
parseVnetFunction · 0.85
parseRouteFunction · 0.85
parseDetailedRouteFunction · 0.85
CreateTunnelMethod · 0.85
GetTunnelTokenMethod · 0.85
GetManagementTokenMethod · 0.85
parseConnectionsDetailsFunction · 0.85
unmarshalTunnelFunction · 0.85

Calls 2

parseResponseEnvelopeFunction · 0.85
parseResponseBodyFunction · 0.85

Tested by

no test coverage detected