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

Method deviceStateData

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

Source from the content-addressed store, hash-verified

7)
8
9func (s *Server) deviceStateData(ctx context.Context, reply string, req *proxy.Request) {
10 data, err := s.ari.DeviceState().Data(req.Key)
11 if err != nil {
12 s.sendError(reply, err)
13 return
14 }
15
16 s.publish(reply, &proxy.Response{
17 Data: &proxy.EntityData{
18 DeviceState: data,
19 },
20 })
21}
22
23func (s *Server) deviceStateGet(ctx context.Context, reply string, req *proxy.Request) {
24 data, err := s.ari.DeviceState().Data(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