(ctx context.Context, reply string, req *proxy.Request)
| 37 | } |
| 38 | |
| 39 | func (s *Server) deviceStateList(ctx context.Context, reply string, req *proxy.Request) { |
| 40 | list, err := s.ari.DeviceState().List(nil) |
| 41 | if err != nil { |
| 42 | s.sendError(reply, err) |
| 43 | return |
| 44 | } |
| 45 | |
| 46 | s.publish(reply, &proxy.Response{ |
| 47 | Keys: list, |
| 48 | }) |
| 49 | } |
| 50 | |
| 51 | func (s *Server) deviceStateUpdate(ctx context.Context, reply string, req *proxy.Request) { |
| 52 | s.sendError(reply, s.ari.DeviceState().Update(req.Key, req.DeviceStateUpdate.State)) |
nothing calls this directly
no test coverage detected