runtime

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package runtime bundles the shared CQRS infrastructure every domain and mediator in this controller depends on: the field cache, event recorder, Domain registry, and command-dispatch Engine (all from github.com/blanketops/environments/core). New constructs exactly one Runtime per controller manager at startup; domains register themselves against its Registry, and controllers route observed events through its Engine rather than handling reconciliation logic directly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	Cache    *cache.Cache
	Events   *events.EventRecorder
	Registry *registry.Registry
	Engine   *engine.Engine
	Log      logr.Logger
}

Runtime bundles the shared infrastructure every domain and mediator depends on: the field cache, event recorder, domain registry, and command-dispatch engine.

func New

func New(mgr ctrl.Manager) *Runtime

New constructs a Runtime from the controller manager, wiring up a fresh Cache, Registry, Engine, and EventRecorder.

Jump to

Keyboard shortcuts

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