loader

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func ValidateConfigYAML(yamlData []byte) error

ValidateConfigYAML validates raw YAML bytes against JSON schema This must be called BEFORE YAML decode to catch invalid fields

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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