organizer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package organizer plans and schedules file chunks for the F2E runtime modes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateGlobalLimits

func ValidateGlobalLimits(limits f2e.GlobalLimits) error

ValidateGlobalLimits checks that the global limits are within acceptable bounds.

func ValidatePrefixConfiguration

func ValidatePrefixConfiguration(c f2e.PrefixConfiguration, limits f2e.GlobalLimits) error

ValidatePrefixConfiguration checks that the prefix configuration is within acceptable bounds and consistent with the global limits. It also validates routing fields (PrefixID, OutputQueueURL).

Types

type ExecutionSummary

type ExecutionSummary struct {
	Summary *f2e.OrganizerSummary
	Jobs    []f2e.ChunkJob
}

ExecutionSummary contains metrics from a planning execution

type Service

type Service struct {
	Store  port.ObjectStore
	Queue  port.Queue
	Ledger port.JobLedger
	Config config.Config
}

func (Service) Plan

func (s Service) Plan(ctx context.Context, request f2e.OrganizerRequest) ([]f2e.ChunkJob, error)

Plan converts the explicit organizer contract into explicit worker jobs.

func (Service) PlanWithSummary

func (s Service) PlanWithSummary(ctx context.Context, request f2e.OrganizerRequest) (*ExecutionSummary, error)

PlanWithSummary converts the organizer request into worker jobs and returns execution summary

func (Service) Publish

func (s Service) Publish(ctx context.Context, jobs []f2e.ChunkJob) error

func (Service) Replay

func (s Service) Replay(ctx context.Context, sourceJobID string, chunkIDs []string) ([]f2e.ChunkJob, error)

Replay republishes the immutable chunk contracts retained by the ledger. A new job ID creates a new event occurrence while file/source identities stay unchanged.

Jump to

Keyboard shortcuts

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