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

Method createRequest

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

Source from the content-addressed store, hash-verified

479}
480
481func (c *Client) createRequest(req *proxy.Request) (*ari.Key, error) {
482 resp, err := c.makeRequest("create", req)
483 if err != nil {
484 return nil, err
485 }
486 if resp.Err() != nil {
487 return nil, resp.Err()
488 }
489 if resp.Key == nil {
490 return nil, ErrNil
491 }
492 return resp.Key, nil
493}
494
495func (c *Client) getRequest(req *proxy.Request) (*ari.Key, error) {
496 resp, err := c.makeRequest("get", req)

Callers 13

CreateMethod · 0.80
StageCreateMethod · 0.80
PlayMethod · 0.80
RecordMethod · 0.80
CreateMethod · 0.80
OriginateMethod · 0.80
StageOriginateMethod · 0.80
CreateMethod · 0.80
SnoopMethod · 0.80
ExternalMediaMethod · 0.80
StageExternalMediaMethod · 0.80
PlayMethod · 0.80

Calls 2

makeRequestMethod · 0.95
ErrMethod · 0.80

Tested by

no test coverage detected