Versions in this module Expand all Collapse all v0 v0.1.0 Mar 1, 2021 Changes in this version + const ROOT_PEM + type KeyPair struct + CACertificatePath string + CertificatePath string + PrivateKeyPath string + type Payload []byte + type Shadow []byte + func (s Shadow) String() string + type ShadowError = Shadow + type Thing struct + func NewThingFromFiles(keyPair KeyPair, awsEndpoint string, thingName ThingName) (*Thing, error) + func NewThingFromStrings(cert string, key string, awsEndpoint string, thingName ThingName) (*Thing, error) + func (t *Thing) DeleteThingShadow() error + func (t *Thing) Disconnect() + func (t *Thing) GetNextJob() (Payload, error) + func (t *Thing) GetThingShadow() (Shadow, error) + func (t *Thing) ListenForJobs() (chan Payload, error) + func (t *Thing) PublishToCustomTopic(payload Payload, topic string) error + func (t *Thing) SubscribeForCustomTopic(topic string) (chan Payload, error) + func (t *Thing) SubscribeForThingShadowChanges() (chan Shadow, chan ShadowError, error) + func (t *Thing) UnsubscribeFromJobs() error + func (t *Thing) UpdateThingShadow(payload Shadow) error + func (t *Thing) UpdateThingShadowDocument(payload Shadow) error + func (t Thing) UnsubscribeFromCustomTopic(topic string) error + type ThingName = string