eea

package
v0.0.75 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package eea provides objects and event handlers for the EEA. EEA stands for Event Execution Aggregator. The EEA is responsible for aggregating events from the webhook and making sure we don't send too many events to the executor engine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EEA

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

EEA is the Event Execution Aggregator

func NewEEA

NewEEA creates a new EEA

func (*EEA) AggregateMiddleware

func (e *EEA) AggregateMiddleware(h message.HandlerFunc) message.HandlerFunc

AggregateMiddleware will pass on the event to the executor engine if the event is ready to be executed. Else it'll cache the event until it's ready to be executed.

func (*EEA) FlushAll

func (e *EEA) FlushAll(ctx context.Context) error

FlushAll will flush all events in the cache to the executor engine

func (*EEA) FlushMessageHandler

func (e *EEA) FlushMessageHandler(msg *message.Message) error

FlushMessageHandler will flush the cache of events to the executor engine if the event is ready to be executed.

func (*EEA) Register

func (e *EEA) Register(r interfaces.Registrar)

Register implements the Consumer interface.

Jump to

Keyboard shortcuts

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