Documentation ¶
Overview ¶
Package config the default setting hierarchy looks like below:
... setting/app/<app>/<app>.test.toml setting/dapr/* ...
Index ¶
- Variables
- func New(app, env string, options ...Option) (intf.ConfigProvider, error)
- type Option
- func WithConfigContent(content string) Option
- func WithConfigDir(args ...string) Option
- func WithConfigFile(filepath string) Option
- func WithConfigFilename(filename string) Option
- func WithConfigType(configType string) Option
- func WithEnvPrefix(envPrefix string) Option
- func WithRootDir(rootDir string) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var Capability = &intf.Capability{ Category: intf.ProviderCategoryConfig, Module: fx.Module( string(intf.ProviderNameConfigViper), fx.Provide(New), ), }
Functions ¶
Types ¶
type Option ¶
type Option func(loader *viperConfigLoader)
func WithConfigContent ¶
func WithConfigDir ¶
func WithConfigFile ¶
func WithConfigFilename ¶
func WithConfigType ¶
func WithEnvPrefix ¶
func WithRootDir ¶
Click to show internal directories.
Click to hide internal directories.