Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaintenanceQueue ¶
type MaintenanceQueue interface { // Enqueue enqueues a hostname into the maintenance queue Enqueue(hostname string) error // Dequeue dequeues a hostname from the maintenance queue Dequeue(maxWaitTime time.Duration) (string, error) // Length returns the length of maintenance queue at any time Length() int // Clear contents of maintenance queue Clear() }
MaintenanceQueue is the interface for maintenance queue.
func NewMaintenanceQueue ¶
func NewMaintenanceQueue() MaintenanceQueue
NewMaintenanceQueue returns an instance of the maintenance queue
Click to show internal directories.
Click to hide internal directories.