s3-orchestrator

serve

import "github.com/afreidah/s3-orchestrator/internal/cli/serve"

Package serve implements the `s3-orchestrator serve` subcommand. It is a thin composition root: load the configuration file, construct a runtime.Runtime, and run it. All daemon assembly lives in internal/runtime.

Index

func Run

func Run(ctx context.Context, configPath, mode string, stdout io.Writer) error

Run is the daemon entry point. Loads config, hands control to the runtime package, and blocks until ctx is cancelled (SIGINT/SIGTERM) or the runtime returns an error. Errors are returned to the caller instead of calling os.Exit so this function is unit-testable.

Generated by gomarkdoc