workers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskConsumer

type TaskConsumer interface {
	FlushDataQueue(context.Context)
	DrainQueue(context.Context) int
}

TaskConsumer exposing methods every consmumer should implement

func NewTaskConsumer

func NewTaskConsumer(consumerQueue chan []byte, config *cfg.LambdaExtensionConfig, logger *logrus.Entry) TaskConsumer

NewTaskConsumer returns a new consumer

type TaskProducer

type TaskProducer interface {
	Start() error
}

TaskProducer exposes methods for producing tasks

func NewTaskProducer

func NewTaskProducer(consumerQueue chan []byte, logger *logrus.Entry) TaskProducer

NewTaskProducer is to return a new object

Jump to

Keyboard shortcuts

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