coordinator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: GPL-3.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package coordinator handles task coordination and dependency management

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrShutdownErrors is returned when errors occur during shutdown
	ErrShutdownErrors = errors.New("errors during shutdown")
)

Functions

This section is empty.

Types

type Direction

type Direction string

Direction represents the processing direction for tasks

const (
	// DirectionForward processes tasks in forward direction
	DirectionForward Direction = "forward"
	// DirectionBack processes tasks in backward direction
	DirectionBack Direction = "back"
)

type Service

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

Service coordinates task processing and dependencies

func NewService

func NewService(log *logrus.Logger, redisOpt *redis.Options, dag *models.DependencyGraph, adminService *admin.Service, validator *validation.DependencyValidator) (*Service, error)

NewService creates a new coordinator service

func (*Service) Process

func (s *Service) Process(transformation models.Transformation, direction Direction)

Process handles transformation processing in the specified direction

func (*Service) Start

func (s *Service) Start() error

Start initializes and starts the coordinator service

func (*Service) Stop

func (s *Service) Stop() error

Stop gracefully shuts down the coordinator service

Jump to

Keyboard shortcuts

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