Documentation
¶
Overview ¶
Package bind maps a config loaded from YAML onto RuntimeConfig.
Index ¶
- func Assembly(p *config.Profile) (config.PlatformConfig, config.AssemblyConfig, error)
- func MigrationDBParams[T config.ServiceRoot, S config.ServiceSecrets](l *config.Loaded[T, S]) (storage.Params, error)
- func RuntimeConfig[T config.ServiceRoot, S config.ServiceSecrets, C config.ServiceConfig](l *config.Loaded[T, S], svc C) (*config.RuntimeConfig[C], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assembly ¶ added in v1.133.0
func Assembly(p *config.Profile) (config.PlatformConfig, config.AssemblyConfig, error)
Assembly binds a profile for boot: the platform every domain shares, with its database validated, and the assembly block as addresses and the token pair every caller presents, with no placeholder left in it. A transport no listener serves is an empty address, which boot reports when a hosted domain registers it.
func MigrationDBParams ¶
func MigrationDBParams[T config.ServiceRoot, S config.ServiceSecrets](l *config.Loaded[T, S]) (storage.Params, error)
func RuntimeConfig ¶
func RuntimeConfig[T config.ServiceRoot, S config.ServiceSecrets, C config.ServiceConfig](l *config.Loaded[T, S], svc C) (*config.RuntimeConfig[C], error)
RuntimeConfig fills RuntimeConfig.Platform from the loaded file and pairs it with the service config the caller mapped. The caller validates the result once it has set the fields only its schema has, such as CORS.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.