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

Method bridgeGet

server/bridge.go:87–101  ·  view source on GitHub ↗
(ctx context.Context, reply string, req *proxy.Request)

Source from the content-addressed store, hash-verified

85}
86
87func (s *Server) bridgeGet(ctx context.Context, reply string, req *proxy.Request) {
88 data, err := s.ari.Bridge().Data(req.Key)
89 if err != nil {
90 s.sendError(reply, err)
91 return
92 }
93
94 if req.Key.Dialog != "" {
95 s.Dialog.Bind(req.Key.Dialog, "bridge", req.Key.ID)
96 }
97
98 s.publish(reply, &proxy.Response{
99 Key: data.Key,
100 })
101}
102
103func (s *Server) bridgeList(ctx context.Context, reply string, req *proxy.Request) {
104 list, err := s.ari.Bridge().List(nil)

Callers

nothing calls this directly

Calls 5

sendErrorMethod · 0.95
publishMethod · 0.95
BridgeMethod · 0.80
BindMethod · 0.65
DataMethod · 0.45

Tested by

no test coverage detected