worker

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MPL-2.0 Imports: 15 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessEventDeliveryBatches added in v0.4.19

func ProcessEventDeliveryBatches(ctx context.Context, status datastore.EventDeliveryStatus, eventDeliveryRepo datastore.EventDeliveryRepository, groupRepo datastore.GroupRepository, deliveryChan <-chan []datastore.EventDelivery, q *redisqueue.RedisQueue, wg *sync.WaitGroup)

func RegisterNewGroupTask

func RegisterNewGroupTask(applicationRepo datastore.ApplicationRepository, eventDeliveryRepo datastore.EventDeliveryRepository, groupRepo datastore.GroupRepository, rateLimiter limiter.RateLimiter, eventRepo datastore.EventRepository, cache cache.Cache, eventQueue queue.Queuer)

func RegisterWorkerMetrics added in v0.4.10

func RegisterWorkerMetrics(q queue.Queuer, cfg config.Configuration)

func RequeueEventDeliveries added in v0.4.19

func RequeueEventDeliveries(status string, timeInterval string, eventDeliveryRepo datastore.EventDeliveryRepository, groupRepo datastore.GroupRepository, eventQueue queue.Queuer) error

Types

type Cleaner

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

func NewCleaner

func NewCleaner(queue queue.Queuer) *Cleaner

func (*Cleaner) Close

func (p *Cleaner) Close() error

func (*Cleaner) Start

func (c *Cleaner) Start()

type Producer

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

func NewProducer

func NewProducer(queue queue.Queuer) *Producer

func (*Producer) Close

func (p *Producer) Close() error

func (*Producer) Start

func (p *Producer) Start(ctx context.Context)

type Worker

type Worker interface {
	Start(context.Context)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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