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

Method getRequest

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

Source from the content-addressed store, hash-verified

493}
494
495func (c *Client) getRequest(req *proxy.Request) (*ari.Key, error) {
496 resp, err := c.makeRequest("get", req)
497 if err != nil {
498 return nil, err
499 }
500 if resp.Err() != nil {
501 return nil, resp.Err()
502 }
503 if resp.Key == nil {
504 return nil, ErrNil
505 }
506 return resp.Key, nil
507}
508
509func (c *Client) dataRequest(req *proxy.Request) (*proxy.EntityData, error) {
510 resp, err := c.makeRequest("data", req)

Callers 15

GetMethod · 0.80
StagePlayMethod · 0.80
StageRecordMethod · 0.80
GetMethod · 0.80
GetMethod · 0.80
GetMethod · 0.80
GetMethod · 0.80
GetMethod · 0.80
GetMethod · 0.80
GetMethod · 0.80
GetMethod · 0.80
StageSnoopMethod · 0.80

Calls 2

makeRequestMethod · 0.95
ErrMethod · 0.80

Tested by

no test coverage detected