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

Method Data

client/device.go:31–40  ·  view source on GitHub ↗
(key *ari.Key)

Source from the content-addressed store, hash-verified

29}
30
31func (ds *deviceState) Data(key *ari.Key) (*ari.DeviceStateData, error) {
32 data, err := ds.c.dataRequest(&proxy.Request{
33 Kind: "DeviceStateData",
34 Key: key,
35 })
36 if err != nil {
37 return nil, err
38 }
39 return data.DeviceState, nil
40}
41
42func (ds *deviceState) Update(key *ari.Key, state string) error {
43 return ds.c.commandRequest(&proxy.Request{

Callers

nothing calls this directly

Calls 1

dataRequestMethod · 0.80

Tested by

no test coverage detected