Documentation ¶
Index ¶
- type AdapterDefault
- type Config
- func (c *Config) GetWithCmdAndEnv(ctx context.Context, pattern string, def ...interface{}) (*gvar.Var, error)
- func (c *Config) MustData(ctx context.Context) map[string]interface{}
- func (c *Config) MustGet(ctx context.Context, pattern string, def ...interface{}) *gvar.Var
- func (c *Config) MustGetWithCmd(ctx context.Context, pattern string, def ...interface{}) *gvar.Var
- func (c *Config) MustGetWithCmdAndEnv(ctx context.Context, pattern string, def ...interface{}) *gvar.Var
- func (c *Config) MustGetWithEnv(ctx context.Context, pattern string, def ...interface{}) *gvar.Var
- func (c *Config) SetErrorFn(errorFn func(ctx context.Context, format string, v ...interface{})) *Config
- func (c *Config) SetErrorLogger(logger *glog.Logger) *Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterDefault ¶ added in v0.4.2
type AdapterDefault struct {
// contains filtered or unexported fields
}
func NewAdapterDefault ¶ added in v0.4.2
func NewAdapterDefault(adapter gcfg.Adapter, fallbacks ...gcfg.Adapter) *AdapterDefault
func (*AdapterDefault) Available ¶ added in v0.4.2
func (a *AdapterDefault) Available(ctx context.Context, resource ...string) (ok bool)
type Config ¶
func (*Config) GetWithCmdAndEnv ¶ added in v0.3.2
func (*Config) MustGetWithCmd ¶
func (*Config) MustGetWithCmdAndEnv ¶ added in v0.3.2
func (*Config) MustGetWithEnv ¶
func (*Config) SetErrorFn ¶
Click to show internal directories.
Click to hide internal directories.