Documentation
¶
Overview ¶
Package appkit holds the worker/operator supervised-component contracts that the generated internal/app composition layer re-uses.
Status (FORGE_SHAPE_REDESIGN §2) ¶
appkit was once the runtime DI engine behind a generated pkg/app/bootstrap.go table (a string-keyed Def/ServiceDef/Run that constructed, wired, and mounted every component). That engine is RETIRED. The live composition path is the generated cmd/server.go over the internal/app layer (OpenInfra → Build → PostBuild → mount via Inventory → serverkit.Run); construction is typed and owned, not string-keyed and reflected.
Moved to lifecyclekit (lib-boundary extraction) ¶
The worker lifecycle machinery — WrapWorker, WorkerInstance / ContextWorkerInstance, WorkerLifecycle — moved to github.com/reliant-labs/forge/pkg/lifecyclekit, which also owns the operator/controller-manager bridge the generated RunOperators delegates to. The generated internal/app/lifecycle_gen.go now imports lifecyclekit directly. appkit keeps DEPRECATED aliases that delegate to lifecyclekit so any remaining consumer of the appkit names still compiles against a single implementation. New code should import lifecyclekit.
- WorkerInstance / ContextWorkerInstance — aliases of the lifecyclekit lifecycle wrappers.
- WrapWorker — delegates to lifecyclekit.WrapWorker, the runtime type-switch that gives RunContext-implementing workers the ctx-aware wrapper and everything else the legacy Start wrapper.
- WorkerLifecycle — alias of lifecyclekit.WorkerLifecycle.
operatorkit (the controller-manager runtime) remains a subpackage here.
Index ¶
- func WrapWorker(name string, w WorkerLifecycle) serverkit.Workerdeprecated
- type ContextWorkerInstancedeprecated
- type WorkerInstancedeprecated
- type WorkerLifecycledeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapWorker
deprecated
func WrapWorker(name string, w WorkerLifecycle) serverkit.Worker
WrapWorker delegates to lifecyclekit.WrapWorker.
Deprecated: use lifecyclekit.WrapWorker.
Types ¶
type ContextWorkerInstance
deprecated
type ContextWorkerInstance = lifecyclekit.ContextWorkerInstance
ContextWorkerInstance is an alias for lifecyclekit.ContextWorkerInstance.
Deprecated: use lifecyclekit.ContextWorkerInstance.
func NewContextWorkerInstance
deprecated
func NewContextWorkerInstance(name string, runContext, stop func(ctx context.Context) error) *ContextWorkerInstance
NewContextWorkerInstance delegates to lifecyclekit.NewContextWorkerInstance.
Deprecated: use lifecyclekit.NewContextWorkerInstance.
type WorkerInstance
deprecated
type WorkerInstance = lifecyclekit.WorkerInstance
WorkerInstance is an alias for lifecyclekit.WorkerInstance.
Deprecated: use lifecyclekit.WorkerInstance.
func NewWorkerInstance
deprecated
func NewWorkerInstance(name string, start, stop func(ctx context.Context) error) *WorkerInstance
NewWorkerInstance delegates to lifecyclekit.NewWorkerInstance.
Deprecated: use lifecyclekit.NewWorkerInstance.
type WorkerLifecycle
deprecated
type WorkerLifecycle = lifecyclekit.WorkerLifecycle
WorkerLifecycle is an alias for lifecyclekit.WorkerLifecycle.
Deprecated: use lifecyclekit.WorkerLifecycle.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package operatorkit owns the controller-manager runtime behind the generated App.RunOperators method in forge projects.
|
Package operatorkit owns the controller-manager runtime behind the generated App.RunOperators method in forge projects. |