You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ConfigUnmarshaler interface is an optional interface that if implemented by a Factory,// the configuration loading system will use to unmarshal the config.typeConfigUnmarshalerinterface {
// Unmarshal is a function that un-marshals a viper data into a config struct in a custom way.// componentViperSection *viper.Viper// The config for this specific component. May be nil or empty if no config available.// intoCfg interface{}// An empty interface wrapping a pointer to the config struct to unmarshal into.Unmarshal(componentViperSection*viper.Viper, intoCfginterface{}) error
}
It would be good to not expose viper directly but an interface{} or map[string]interface{} in our public API, so if viper breaks compatibility or moves to viper v2 (which is already planned) we can upgrade without breaking compatibility.
The text was updated successfully, but these errors were encountered:
Currently the custom unmarshaler accepts
viper
:It would be good to not expose viper directly but an
interface{}
ormap[string]interface{}
in our public API, so if viper breaks compatibility or moves to viper v2 (which is already planned) we can upgrade without breaking compatibility.The text was updated successfully, but these errors were encountered: