Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertQueue ¶
type AlertQueue struct {
*Queue[*store.MonitorAlert]
}
AlertQueue is a concrete queue type for MonitorAlerts.
func NewAlertQueue ¶
func NewAlertQueue(log *logrus.Logger, worker func(context.Context, *store.MonitorAlert) (bool, error), metrics *Metrics) *AlertQueue
NewAlertQueue creates a new alert queue.
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
Queue is a generic queue for processing items.
func NewQueue ¶
func NewQueue[T any](log *logrus.Logger, worker func(context.Context, T) (bool, error), metrics *Metrics) *Queue[T]
NewQueue creates a new queue.
Click to show internal directories.
Click to hide internal directories.