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 ¶
func UnmarshalDeviceCommand ¶
func UnmarshalDeviceCommand(data []byte, c *DeviceCommand) error
Types ¶
type DeviceCommand ¶
type Option ¶
type Option func(*Store)
func WithLogger ¶
func WithoutHistory ¶
func WithoutHistory() Option
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
Click to show internal directories.
Click to hide internal directories.