runtimeplan

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapters

type Adapters struct {
	DB     string
	Cache  string
	Jobs   string
	PubSub string
}

Adapters contains selected backend implementations for major pluggable capabilities.

type Plan

type Plan struct {
	Profile      string
	RunWeb       bool
	RunWorker    bool
	RunScheduler bool
	CoLocated    bool
	Adapters     Adapters
}

Plan describes the resolved runtime/process topology without mutating startup behavior.

func Resolve

func Resolve(cfg *config.Config) (Plan, error)

Resolve builds a normalized runtime plan from config and validates obvious topology mistakes.

type WebFeatures

type WebFeatures struct {
	EnablePageCache bool
	EnableRealtime  bool
}

WebFeatures describes runtime-dependent feature exposure for web routing.

func ResolveWebFeatures

func ResolveWebFeatures(plan Plan, hasCache, hasNotifier bool) WebFeatures

ResolveWebFeatures computes web feature flags from runtime plan and available dependencies.

Jump to

Keyboard shortcuts

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