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

Method makeRequests

client/client.go:550–561  ·  view source on GitHub ↗
(class string, req *proxy.Request)

Source from the content-addressed store, hash-verified

548}
549
550func (c *Client) makeRequests(class string, req *proxy.Request) (responses []*proxy.Response, err error) {
551 if req == nil {
552 return nil, eris.New("empty request")
553 }
554 if req.Key == nil {
555 req.Key = ari.NewKey("", "")
556 }
557
558 expected := len(c.core.cluster.Matching(req.Key.Node, req.Key.App, c.core.clusterMaxAge))
559
560 return c.mbus.MultipleRequest(c.subject(class, req), req, expected)
561}
562
563func (c *Client) makeBroadcastRequestReturnFirstGoodResponse(class string, req *proxy.Request) (*proxy.Response, error) {
564 if req == nil {

Callers 1

listRequestMethod · 0.95

Calls 4

subjectMethod · 0.95
NewMethod · 0.80
MatchingMethod · 0.80
MultipleRequestMethod · 0.65

Tested by

no test coverage detected