jobqueue

package
v0.0.0-...-0bdedc6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobQueue

type JobQueue struct {
	// contains filtered or unexported fields
}

func NewJobQueue

func NewJobQueue() *JobQueue

func (*JobQueue) Close

func (q *JobQueue) Close()

func (*JobQueue) Jobs

func (q *JobQueue) Jobs() <-chan *m.AlertingJob

func (*JobQueue) QueueJob

func (q *JobQueue) QueueJob(job *m.AlertingJob)

type KafkaPubSub

type KafkaPubSub struct {
	// contains filtered or unexported fields
}

func NewKafkaPubSub

func NewKafkaPubSub(brokersStr, topic string, pub <-chan *m.AlertingJob, sub chan<- *m.AlertingJob) *KafkaPubSub

func (*KafkaPubSub) Cleanup

func (*KafkaPubSub) Close

func (ps *KafkaPubSub) Close()

func (*KafkaPubSub) ConsumeClaim

func (ps *KafkaPubSub) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (*KafkaPubSub) Run

func (ps *KafkaPubSub) Run()

func (*KafkaPubSub) Setup

Jump to

Keyboard shortcuts

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