workers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubEventType added in v1.0.2

type SubEventType string
const (
	// RuntimeDone event is sent when lambda function is finished it's execution
	RuntimeDone SubEventType = "platform.runtimeDone"
)

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