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

Method asteriskLoggingData

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

Source from the content-addressed store, hash-verified

43}
44
45func (s *Server) asteriskLoggingData(ctx context.Context, reply string, req *proxy.Request) {
46 data, err := s.ari.Asterisk().Logging().Data(req.Key)
47 if err != nil {
48 s.sendError(reply, err)
49 return
50 }
51
52 s.publish(reply, &proxy.Response{
53 Data: &proxy.EntityData{
54 Log: data,
55 },
56 })
57}
58
59func (s *Server) asteriskLoggingRotate(ctx context.Context, reply string, req *proxy.Request) {
60 s.sendError(reply, s.ari.Asterisk().Logging().Rotate(req.Key))

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected