Documentation ¶
Overview ¶
Package queue implements a boldDB backed queue for MDM Commands.
Index ¶
Constants ¶
View Source
const ( DeviceCommandBucket = "mdm.DeviceCommands" CommandQueuedTopic = "mdm.CommandQueued" )
Variables ¶
This section is empty.
Functions ¶
func MarshalDeviceCommand ¶
func MarshalDeviceCommand(c *DeviceCommand) ([]byte, error)
func MarshalQueuedCommand ¶
func MarshalQueuedCommand(cq *QueueCommandQueued) ([]byte, error)
func UnmarshalDeviceCommand ¶
func UnmarshalDeviceCommand(data []byte, c *DeviceCommand) error
Types ¶
type DeviceCommand ¶
type QueueCommandQueued ¶
func UnmarshalQueuedCommand ¶
func UnmarshalQueuedCommand(data []byte) (*QueueCommandQueued, error)
type Store ¶
func (*Store) DeviceCommand ¶
func (db *Store) DeviceCommand(udid string) (*DeviceCommand, error)
func (*Store) Save ¶
func (db *Store) Save(cmd *DeviceCommand) error
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
commandqueuedproto
Package commandqueued is a generated protocol buffer package.
|
Package commandqueued is a generated protocol buffer package. |
devicecommandproto
Package devicecommandproto is a generated protocol buffer package.
|
Package devicecommandproto is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.