shadow

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(deviceId string) (*Shadow, error)
}

Client represents a client to the device shadow service

func New

func New(sess *session.Session) (Client, error)

New creates a new shadow client

type Metadata

type Metadata struct {
	Reported map[string]MetadataEntry `json:""`
}

type MetadataEntry

type MetadataEntry struct {
	Timestamp Timestamp `json:""`
}

type Shadow

type Shadow struct {
	Timestamp Timestamp `json:""`
	Metadata  Metadata  `json:""`
	State     State     `json:""`
}

type State

type State struct {
	Reported map[string]interface{} `json:""`
}

type Timestamp

type Timestamp struct {
	time.Time
}

func (*Timestamp) UnmarshalJSON

func (t *Timestamp) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL