controller

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package controller is the top-level orchestrator for the ecs-arc controller. It wires together the scaleset client, listener, scaler, and runner for each configured scale set, managing their lifecycles as goroutines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller manages the lifecycle of all scale set goroutines.

func New

func New(cfg *config.Config, ecsClient *ecs.Client, logger *slog.Logger) *Controller

New creates a new Controller.

func (*Controller) Run

func (c *Controller) Run(ctx context.Context) error

Run starts all scale set goroutines and blocks until the context is cancelled. On cancellation, it cleans up scale set registrations.

Jump to

Keyboard shortcuts

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