orchestrator

package
v0.0.0-...-e436aa5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: GPL-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 Config

type Config struct {
	GetSitesInterval     time.Duration
	GetEventsInterval    time.Duration
	GetEventsParallelism int
	NumRunWorkers        int
	EventBacklog         int
}

Config helps callers set up the orchestrator.

type Orchestrator

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

Orchestrator is responsible for managing the event queue & related runners. It adds events, runs them, and gracefully closes down processes when needed.

func New

func New(perf performer.Performer, metrics metrics.Manager, logger logger.Logger, locker locker.Locker, config Config) *Orchestrator

New sets up a new orchestrator based on the passed configurations

func (*Orchestrator) Close

func (orch *Orchestrator) Close() error

Close the orchestrator processes.

Jump to

Keyboard shortcuts

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