Documentation
¶
Index ¶
- type Client
- func (c *Client) GetDeviceShadow(productKey string, deviceName string) (*ShadowMessage, error)
- func (c *Client) UpdateDeviceShadow(productKey string, deviceName string, desired interface{}, version int, ...) (bool, error)
- func (c *Client) UpdateDeviceShadowEx(productKey string, deviceName string, desired interface{}, delta bool) (bool, error)
- type ShadowMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetDeviceShadow ¶
func (c *Client) GetDeviceShadow(productKey string, deviceName string) (*ShadowMessage, error)
func (*Client) UpdateDeviceShadow ¶
type ShadowMessage ¶
type ShadowMessage struct { State struct { Desired json.RawMessage `json:"desired"` } `json:"state"` Metadata struct { Desired json.RawMessage `json:"desired"` } `json:"metadata"` Timestamp int64 `json:"timestamp"` Version int `json:"version"` }
Click to show internal directories.
Click to hide internal directories.