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

Method asteriskModuleGet

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

Source from the content-addressed store, hash-verified

33}
34
35func (s *Server) asteriskModuleGet(ctx context.Context, reply string, req *proxy.Request) {
36 data, err := s.ari.Asterisk().Modules().Data(req.Key)
37 if err != nil {
38 s.sendError(reply, err)
39 return
40 }
41
42 s.publish(reply, &proxy.Response{
43 Key: data.Key,
44 })
45}
46
47func (s *Server) asteriskModuleList(ctx context.Context, reply string, req *proxy.Request) {
48 list, err := s.ari.Asterisk().Modules().List(nil)

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