aggregation

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 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 Config

type Config struct {
	Store      *store.RedisStore
	Dispatcher *dispatcher.Dispatcher
	Group      types.GroupConfig
	Logger     gochainedlog.Logger
}

Config configures the group aggregation processor.

type Processor

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

Processor periodically flushes ready groups and dispatches the aggregated tasks for processing.

func New

func New(cfg Config) *Processor

New creates a new group aggregation processor.

func (*Processor) Start

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

Start begins the flush loop. Runs until context is cancelled.

func (*Processor) Stop

func (p *Processor) Stop()

Stop halts the flush loop.

Jump to

Keyboard shortcuts

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