queue

package
v0.0.0-...-d2b1cdf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL