Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Debug bool
Watch bool
ConfigName string
ConfigFile string
ConfigType string
ConfigPermissions os.FileMode
EnvPrefix string
RemoteProvider []RemoteProvider
AllowEmptyEnv bool
IniLoadOptions ini.LoadOptions
EnvVars []string
}
全局变量,只一个实例,只提供config
func (*Config) AfterInject ¶
func (c *Config) AfterInject()
AfterInject calls Init after config fields are populated.
func (*Config) BeforeInject ¶
func (c *Config) BeforeInject()
BeforeInject is a no-op satisfying the Config interface.
type RemoteProvider ¶
type Viper ¶
Viper is a DaoField wrapper around viper.Viper. Prefer using the global Viper instance instead.
func (*Viper) Close ¶
Close is intentionally a no-op (the Viper type has no teardown); prefer using the global Viper instance.
Click to show internal directories.
Click to hide internal directories.