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

Method deviceStateGet

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

sendErrorMethod · 0.95
publishMethod · 0.95
DeviceStateMethod · 0.80
DataMethod · 0.45

Tested by

no test coverage detected