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

Method playbackGet

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

Source from the content-addressed store, hash-verified

25}
26
27func (s *Server) playbackGet(ctx context.Context, reply string, req *proxy.Request) {
28 s.Log.Debug("Fetching playback data", "playback", req.Key)
29 data, err := s.ari.Playback().Data(req.Key)
30 if err != nil {
31 s.sendError(reply, err)
32 return
33 }
34
35 s.publish(reply, &proxy.Response{
36 Key: data.Key,
37 })
38}
39
40func (s *Server) playbackStop(ctx context.Context, reply string, req *proxy.Request) {
41 s.sendError(reply, s.ari.Playback().Stop(req.Key))

Callers

nothing calls this directly

Calls 4

sendErrorMethod · 0.95
publishMethod · 0.95
PlaybackMethod · 0.80
DataMethod · 0.45

Tested by

no test coverage detected