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

Method bridgeDelete

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

Source from the content-addressed store, hash-verified

70}
71
72func (s *Server) bridgeDelete(ctx context.Context, reply string, req *proxy.Request) {
73 // bind dialog
74 if req.Key.Dialog != "" {
75 s.Dialog.Bind(req.Key.Dialog, "bridge", req.Key.ID)
76 }
77
78 err := s.ari.Bridge().Delete(req.Key)
79 if err != nil {
80 s.sendError(reply, err)
81 return
82 }
83
84 s.sendError(reply, nil)
85}
86
87func (s *Server) bridgeGet(ctx context.Context, reply string, req *proxy.Request) {
88 data, err := s.ari.Bridge().Data(req.Key)

Callers

nothing calls this directly

Calls 4

sendErrorMethod · 0.95
BridgeMethod · 0.80
BindMethod · 0.65
DeleteMethod · 0.45

Tested by

no test coverage detected