Documentation
¶
Index ¶
- func LoadConfig(configPaths ...string) (*schema.DeployConfig, error)
- func NormalizeInlineDefinitionsForServer(config *schema.DeployConfig, deploymentName, serverName string) error
- func RegisterDefinitionsForRuntime(registry *deploy.GlobalRegistry, config *schema.DeployConfig, ...) error
- func StoreDefinitionsToRegistry(registry *deploy.GlobalRegistry, config *schema.DeployConfig) error
- func ValidateConfigYAML(yamlData []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(configPaths ...string) (*schema.DeployConfig, error)
LoadConfig loads config and builds ALL deployments into Global registry Returns error only - deployments are stored in deploy.Global()
func NormalizeInlineDefinitionsForServer ¶ added in v0.3.3
func NormalizeInlineDefinitionsForServer( config *schema.DeployConfig, deploymentName, serverName string, ) error
NormalizeInlineDefinitionsForServer performs lazy normalization of inline definitions for a specific deployment and server. This is called just before running the server.
Normalization strategy:
- Deployment-level inline: {deployment}.{name}
- Server-level inline: {deployment}.{server}.{name}
This function ONLY updates the config structure (moves inline to global definitions). The actual registration happens in the normal flow via LoadAndBuild logic.
func RegisterDefinitionsForRuntime ¶ added in v0.3.3
func RegisterDefinitionsForRuntime(registry *deploy.GlobalRegistry, config *schema.DeployConfig, deploymentName, serverName string, serverTopo *deploy.ServerTopology) error
RegisterDefinitionsForRuntime performs runtime registration of definitions This is called in RunCurrentServer AFTER normalization It registers middlewares, services (with remote/local logic), and auto-generates routers for published services
func StoreDefinitionsToRegistry ¶ added in v0.3.3
func StoreDefinitionsToRegistry(registry *deploy.GlobalRegistry, config *schema.DeployConfig) error
StoreDefinitionsToRegistry stores all definitions to the global registry WITHOUT runtime registration This is called during LoadAndBuild to prepare definitions for later lazy registration Runtime registration happens in RunCurrentServer after normalization
func ValidateConfigYAML ¶ added in v0.9.0
ValidateConfigYAML validates raw YAML bytes against JSON schema This must be called BEFORE YAML decode to catch invalid fields
Types ¶
This section is empty.