Versions in this module Expand all Collapse all v1 v1.3.1 Jul 11, 2018 v1.3.0 Jun 10, 2018 Changes in this version + const CommandQueuedTopic + const DeviceCommandBucket + func MarshalDeviceCommand(c *DeviceCommand) ([]byte, error) + func MarshalQueuedCommand(cq *QueueCommandQueued) ([]byte, error) + func UnmarshalDeviceCommand(data []byte, c *DeviceCommand) error + type Command struct + Acknowledged time.Time + CreatedAt time.Time + FailureMessage []byte + LastSentAt time.Time + LastStatus string + Payload []byte + TimesSent int + UUID string + type DeviceCommand struct + Commands []Command + Completed []Command + DeviceUDID string + Failed []Command + NotNow []Command + type QueueCommandQueued struct + CommandUUID string + DeviceUDID string + func UnmarshalQueuedCommand(data []byte) (*QueueCommandQueued, error) + type Store struct + func NewQueue(db *bolt.DB, pubsub pubsub.PublishSubscriber) (*Store, error) + func (db *Store) DeviceCommand(udid string) (*DeviceCommand, error) + func (db *Store) Next(ctx context.Context, resp mdm.Response) ([]byte, error) + func (db *Store) Save(cmd *DeviceCommand) error