Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { // Unmarshal configuration section into configuration object. // // func (h *HttpService) Init(cp config.Provider) error { // h.config := &HttpConfig{} // if err := configProvider.UnmarshalKey("http", h.config); err != nil { // return err // } // } UnmarshalKey(name string, out interface{}) error // Get used to get config section Get(name string) interface{} }
type ViperProvider ¶
func (*ViperProvider) Get ¶
func (v *ViperProvider) Get(name string) interface{}
Get raw config in a form of config section.
func (*ViperProvider) Overwrite ¶
func (v *ViperProvider) Overwrite(values map[string]string) error
Overwrite overwrites existing config with provided values
func (*ViperProvider) UnmarshalKey ¶
func (v *ViperProvider) UnmarshalKey(name string, out interface{}) error
Click to show internal directories.
Click to hide internal directories.