queue

package
v0.1.74 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueue

func NewQueue(name string, healthyLimit int) rmq.Queue

NewQueue creates a new rmq.Queue and initializes health checks for this queue Whenever the number of items in the queue exceeds the healthyLimit The queue will be reported as unhealthy If the queue has already been opened, it will just be returned. Limits will not be updated

Types

type HealthCheck

type HealthCheck struct {

	// IgnoreInterval is a switch used for testing, just to allow multiple
	// functional queries of HealthCheck in rapid bursts
	IgnoreInterval bool
	// contains filtered or unexported fields
}

func (*HealthCheck) HealthCheck

HealthCheck checks if the queues are healthy, i.e. whether the number of items accumulated is below the healthyLimit defined when opening the queue

Jump to

Keyboard shortcuts

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