MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / dataRequest

Method dataRequest

client/client.go:509–521  ·  view source on GitHub ↗
(req *proxy.Request)

Source from the content-addressed store, hash-verified

507}
508
509func (c *Client) dataRequest(req *proxy.Request) (*proxy.EntityData, error) {
510 resp, err := c.makeRequest("data", req)
511 if err != nil {
512 return nil, err
513 }
514 if resp.Err() != nil {
515 return nil, resp.Err()
516 }
517 if resp.Data == nil {
518 return nil, ErrNil
519 }
520 return resp.Data, nil
521}
522
523func (c *Client) listRequest(req *proxy.Request) ([]*ari.Key, error) {
524 var list []*ari.Key

Callers 15

DataMethod · 0.80
DataMethod · 0.80
DataMethod · 0.80
DataMethod · 0.80
DataMethod · 0.80
DataMethod · 0.80
DataMethod · 0.80
DataMethod · 0.80
InfoMethod · 0.80
GetMethod · 0.80
DataMethod · 0.80
DataMethod · 0.80

Calls 2

makeRequestMethod · 0.95
ErrMethod · 0.80

Tested by

no test coverage detected