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

Method asteriskModuleData

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

Source from the content-addressed store, hash-verified

19}
20
21func (s *Server) asteriskModuleData(ctx context.Context, reply string, req *proxy.Request) {
22 data, err := s.ari.Asterisk().Modules().Data(req.Key)
23 if err != nil {
24 s.sendError(reply, err)
25 return
26 }
27
28 s.publish(reply, &proxy.Response{
29 Data: &proxy.EntityData{
30 Module: data,
31 },
32 })
33}
34
35func (s *Server) asteriskModuleGet(ctx context.Context, reply string, req *proxy.Request) {
36 data, err := s.ari.Asterisk().Modules().Data(req.Key)

Callers

nothing calls this directly

Calls 5

sendErrorMethod · 0.95
publishMethod · 0.95
ModulesMethod · 0.80
AsteriskMethod · 0.80
DataMethod · 0.45

Tested by

no test coverage detected