Documentation ¶
Overview ¶
Package queue implements a boldDB backed queue for MDM Commands.
Index ¶
- Constants
- func MarshalDeviceCommand(c *DeviceCommand) ([]byte, error)
- func MarshalQueuedCommand(cq *QueueCommandQueued) ([]byte, error)
- func PublishCommandQueued(pub pubsub.Publisher, udid, uuid string) error
- func UnmarshalDeviceCommand(data []byte, c *DeviceCommand) error
- type Command
- type DeviceCommand
- type Option
- type QueueCommandQueued
- type Store
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 PublishCommandQueued ¶ added in v1.9.0
func UnmarshalDeviceCommand ¶
func UnmarshalDeviceCommand(data []byte, c *DeviceCommand) error
Types ¶
type DeviceCommand ¶
type Option ¶ added in v1.5.0
type Option func(*Store)
func WithLogger ¶ added in v1.5.0
func WithoutHistory ¶ added in v1.7.1
func WithoutHistory() Option
type QueueCommandQueued ¶
func UnmarshalQueuedCommand ¶
func UnmarshalQueuedCommand(data []byte) (*QueueCommandQueued, error)
Click to show internal directories.
Click to hide internal directories.