(ctx context.Context, reply string, req *proxy.Request)
| 21 | } |
| 22 | |
| 23 | func (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 | |
| 35 | func (s *Server) deviceStateDelete(ctx context.Context, reply string, req *proxy.Request) { |
| 36 | s.sendError(reply, s.ari.DeviceState().Delete(req.Key)) |
nothing calls this directly
no test coverage detected