Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorParamEmpty liberr.CodeError = iota + liberr.MinPkgViper ErrorParamMissing ErrorHomePathNotFound ErrorBasePathNotFound ErrorRemoteProvider ErrorRemoteProviderSecure ErrorRemoteProviderRead ErrorRemoteProviderMarshall ErrorConfigRead ErrorConfigReadDefault ErrorConfigIsDefault )
View Source
const (
RemoteETCD = "etcd"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncConfigGet ¶ added in v1.10.0
type FuncSPFViper ¶ added in v1.10.0
type Viper ¶
type Viper interface { SetRemoteProvider(provider string) SetRemoteEndpoint(endpoint string) SetRemotePath(path string) SetRemoteSecureKey(key string) SetRemoteModel(model interface{}) SetRemoteReloadFunc(fct func()) SetHomeBaseName(base string) SetEnvVarsPrefix(prefix string) SetDefaultConfig(fct func() io.Reader) SetConfigFile(fileConfig string) liberr.Error Config(logLevelRemoteKO, logLevelRemoteOK liblog.Level) liberr.Error Viper() *spfvpr.Viper WatchFS(logLevelFSInfo liblog.Level) Unset(key ...string) error HookRegister(hook libmap.DecodeHookFunc) HookReset() UnmarshalKey(key string, rawVal interface{}) error Unmarshal(rawVal interface{}) error UnmarshalExact(rawVal interface{}) error }
func New ¶
func New(ctx libctx.FuncContext) Viper
Click to show internal directories.
Click to hide internal directories.