Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
StepUndefinedError = errors.New("step is undefined")
)
Functions ¶
This section is empty.
Types ¶
type BindFlags ¶
BindFlags defines a function for registering command-line flags. Called during the flag binding phase before any step execution.
type Component ¶
type Component struct {
// Name component in core logs
Name string
// Dependencies lists other components that must be initialized before this one
Dependencies Components
// Init performs initial setup and registers services in the container
Init StepFunc
Configuration StepFunc
// BindFlags registers component-specific command-line flags
BindFlags BindFlags
// PreExecute executes before the main Execute step
PreExecute StepFunc
ExecuteDuration GetDurationFunc
// Execute contains the main component logic
Execute StepFunc
// PostExecute executes after the main Execute step
PostExecute StepFunc
// PreWait executes before entering wait state
PreWait StepFunc
// Wait typically blocks for signals or async operations
Wait WaitFunc
// PostWait executes after wait state
PostWait StepFunc
// PreStop executes before shutdown
PreStop StepFunc
// Stop performs cleanup and graceful shutdown
Stop StepFunc
// PostStop executes after shutdown is complete
PostStop StepFunc
}
Component represents a modular piece of application logic with a defined lifecycle. Each component can declare dependencies and hook into various execution steps.
type Components ¶
type Components []*Component
Components is a collection of Component pointers for easier grouping.
type GetDurationFunc ¶
Click to show internal directories.
Click to hide internal directories.