Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // QueueSize message queue size on gobelisk. QueueSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{}, []string{"name"}) QueueErrorsCount = prometheus.NewCounterVec(prometheus.CounterOpts{}, []string{"name"}) )
Functions ¶
func PrometheusCollectors ¶
func PrometheusCollectors(namespace string) []prometheus.Collector
PrometheusCollectors gives a slice fo all Prometheus metrics that this library uses. These will have to be registered to the Prometheus library in your application.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue wraps a Queues, for a single queue.
func NewQueue ¶
NewQueue creates a Queue wrapper.
type QueueDef ¶
type Queues ¶
type Queues struct {
// contains filtered or unexported fields
}
Queues represents an implementation of a persistent queue in disk, containing multiple QueueDefs.
func NewQueues ¶
func NewQueues(registeredInterfaces []interface{}) *Queues
NewQueues creates, init and returns a Queue.
func (*Queues) Attach ¶
Attach will add a new observer related with the CABStatus events.
func (*Queues) Enqueue ¶
Enqueue enqueues an interface object to its queue.
Source Files
¶
- def.go
- metrics.go
- queue.go
Click to show internal directories.
Click to hide internal directories.