dispatcher

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConflationDispatcher

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

ConflationDispatcher abstracts the dispatching of db jobs to db workers. this is done by reading ready CU and getting from them a ready to process bundles.

func NewConflationDispatcher

func NewConflationDispatcher(log logr.Logger, conflationReadyQueue *conflator.ConflationReadyQueue,
	dbWorkerPool *workerpool.DBWorkerPool,
) *ConflationDispatcher

NewConflationDispatcher creates a new instance of Dispatcher.

func (*ConflationDispatcher) Start

func (dispatcher *ConflationDispatcher) Start(ctx context.Context) error

Start starts the dispatcher.

type TransportDispatcher

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

Get message from transport, convert it to bundle and forward it to conflation manager.

func NewTransportDispatcher

func NewTransportDispatcher(log logr.Logger, consumer transport.Consumer,
	conflationManager *conflator.ConflationManager, stats *statistics.Statistics,
) *TransportDispatcher

func (*TransportDispatcher) BundleRegister

func (d *TransportDispatcher) BundleRegister(registration *registration.BundleRegistration)

func (*TransportDispatcher) Start

func (d *TransportDispatcher) Start(ctx context.Context) error

Start function starts bundles status syncer.

Jump to

Keyboard shortcuts

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