Versions in this module Expand all Collapse all v0 v0.4.0 Feb 28, 2021 Changes in this version + const RequestIDSize + var ErrDeviceTimeout = errors.New("device timeout") + var ErrInvalidSignature = errors.New("invalid signature") + type Devmgmt struct + Client paho.Client + func New(opts Options) (Devmgmt, error) + func (devmgmt Devmgmt) FetchDeviceState(ctx context.Context, device types.Device) (types.DeviceResponse, error) + func (devmgmt Devmgmt) PublishWithResponse(ctx context.Context, body []byte, topic ResponseTopic, pkey ed25519.PublicKey) ([]byte, error) + func (devmgmt Devmgmt) SendActionCommand(ctx context.Context, device types.Device, command string, ...) (types.DeviceResponse, error) + type Options struct + BrokerURL string + ClientID string + ServerPrivateKey ed25519.PrivateKey + ServerPublicKey ed25519.PublicKey + func (opts *Options) Parse() + type ResponseTopic struct + Request string + Response string