Documentation ¶
Index ¶
- Constants
- Variables
- func FxEmbeddedApplicationAdHoc(fs embed.FS, searchPaths ...string) fx.Option
- func FxEmbeddedBootstrapAdHoc(fs embed.FS, searchPaths ...string) fx.Option
- func FxEmbeddedDefaults(fs embed.FS, searchPaths ...string) fx.Option
- func FxProvideApplicationAdHoc(providers ...interface{}) fx.Option
- func FxProvideBootstrapAdHoc(providers ...interface{}) fx.Option
- func FxProvideDefaults(providers ...interface{}) fx.Option
- func Use()
Constants ¶
const ( FxGroupBootstrap = "bootstrap-config" FxGroupApplication = "application-config" FxGroupDefaults = "default-config" )
const ( PrecedenceExternalAppContext PrecedenceExternalDefaultContext PrecedenceApplicationAdHoc PrecedenceBootstrapAdHoc PrecedenceCommandline PrecedenceOSEnv PrecedenceApplicationLocalFile PrecedenceBootstrapLocalFile PrecedenceDefault )
Variables ¶
var Module = &bootstrap.Module{ Name: "bootstrap endpoint", Precedence: bootstrap.AppConfigPrecedence, PriorityOptions: []fx.Option{ FxEmbeddedDefaults(defaultConfigFS), fx.Provide( newCommandProviderGroup, newOsEnvProviderGroup, newBootstrapFileProviderGroup, newDefaultProviderGroup, newBootstrapAdHocProviderGroup, newBootstrapConfig, newApplicationFileProviderGroup, newApplicationAdHocProviderGroup, newApplicationConfig, newGlobalProperties, ), }, }
Functions ¶
func FxEmbeddedApplicationAdHoc ¶
FxEmbeddedApplicationAdHoc returns a specialized fx.Option that take a given embed.FS and load *.yml as application properties
func FxEmbeddedBootstrapAdHoc ¶
FxEmbeddedBootstrapAdHoc returns a specialized fx.Option that take a given embed.FS and load *.yml as bootstrap properties
func FxEmbeddedDefaults ¶
FxEmbeddedDefaults returns a specialized fx.Option that take a given embed.FS and load *.yml as default properties
func FxProvideApplicationAdHoc ¶
FxProvideApplicationAdHoc wraps given interface{} as a fx.Provide of appconfig.Provider with order of overriding application properties Supported interface are
- appconfig.Provider
- a function that returns/create appconfig.Provider
func FxProvideBootstrapAdHoc ¶
FxProvideBootstrapAdHoc wraps given interface{} as a fx.Provide of appconfig.Provider with order of overriding bootstrap properties Supported interface are
- appconfig.Provider
- a function that returns/create appconfig.Provider
func FxProvideDefaults ¶
FxProvideDefaults wraps given interface{} as a fx.Provide of appconfig.Provider with order of default properties Supported interface are
- appconfig.Provider
- a function that returns/create appconfig.Provider
Types ¶
This section is empty.