Documentation ¶
Index ¶
- type Loader
- func (_m *Loader) AddConfigPath(path string)
- func (_m *Loader) AutomaticEnv()
- func (_m *Loader) ConfigFileUsed() string
- func (_m *Loader) EXPECT() *Loader_Expecter
- func (_m *Loader) ReadInConfig() error
- func (_m *Loader) SetConfigName(name string)
- func (_m *Loader) SetConfigType(configType string)
- func (_m *Loader) SetEnvKeyReplacer(replacer *strings.Replacer)
- func (_m *Loader) SetEnvPrefix(prefix string)
- func (_m *Loader) Unmarshal(rawVal interface{}) error
- type Loader_AddConfigPath_Call
- type Loader_AutomaticEnv_Call
- type Loader_ConfigFileUsed_Call
- type Loader_Expecter
- func (_e *Loader_Expecter) AddConfigPath(path interface{}) *Loader_AddConfigPath_Call
- func (_e *Loader_Expecter) AutomaticEnv() *Loader_AutomaticEnv_Call
- func (_e *Loader_Expecter) ConfigFileUsed() *Loader_ConfigFileUsed_Call
- func (_e *Loader_Expecter) ReadInConfig() *Loader_ReadInConfig_Call
- func (_e *Loader_Expecter) SetConfigName(name interface{}) *Loader_SetConfigName_Call
- func (_e *Loader_Expecter) SetConfigType(configType interface{}) *Loader_SetConfigType_Call
- func (_e *Loader_Expecter) SetEnvKeyReplacer(replacer interface{}) *Loader_SetEnvKeyReplacer_Call
- func (_e *Loader_Expecter) SetEnvPrefix(prefix interface{}) *Loader_SetEnvPrefix_Call
- func (_e *Loader_Expecter) Unmarshal(rawVal interface{}) *Loader_Unmarshal_Call
- type Loader_ReadInConfig_Call
- type Loader_SetConfigName_Call
- type Loader_SetConfigType_Call
- type Loader_SetEnvKeyReplacer_Call
- func (_c *Loader_SetEnvKeyReplacer_Call) Return() *Loader_SetEnvKeyReplacer_Call
- func (_c *Loader_SetEnvKeyReplacer_Call) Run(run func(replacer *strings.Replacer)) *Loader_SetEnvKeyReplacer_Call
- func (_c *Loader_SetEnvKeyReplacer_Call) RunAndReturn(run func(*strings.Replacer)) *Loader_SetEnvKeyReplacer_Call
- type Loader_SetEnvPrefix_Call
- type Loader_Unmarshal_Call
- type Provider
- type Provider_Expecter
- type Provider_InitConfig_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
Loader is an autogenerated mock type for the Loader type
func NewLoader ¶
NewLoader creates a new instance of Loader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Loader) AddConfigPath ¶
AddConfigPath provides a mock function with given fields: path
func (*Loader) AutomaticEnv ¶
func (_m *Loader) AutomaticEnv()
AutomaticEnv provides a mock function with given fields:
func (*Loader) ConfigFileUsed ¶
ConfigFileUsed provides a mock function with given fields:
func (*Loader) EXPECT ¶
func (_m *Loader) EXPECT() *Loader_Expecter
func (*Loader) ReadInConfig ¶
ReadInConfig provides a mock function with given fields:
func (*Loader) SetConfigName ¶
SetConfigName provides a mock function with given fields: name
func (*Loader) SetConfigType ¶
SetConfigType provides a mock function with given fields: configType
func (*Loader) SetEnvKeyReplacer ¶
SetEnvKeyReplacer provides a mock function with given fields: replacer
func (*Loader) SetEnvPrefix ¶
SetEnvPrefix provides a mock function with given fields: prefix
type Loader_AddConfigPath_Call ¶
Loader_AddConfigPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddConfigPath'
func (*Loader_AddConfigPath_Call) Return ¶
func (_c *Loader_AddConfigPath_Call) Return() *Loader_AddConfigPath_Call
func (*Loader_AddConfigPath_Call) Run ¶
func (_c *Loader_AddConfigPath_Call) Run(run func(path string)) *Loader_AddConfigPath_Call
func (*Loader_AddConfigPath_Call) RunAndReturn ¶
func (_c *Loader_AddConfigPath_Call) RunAndReturn(run func(string)) *Loader_AddConfigPath_Call
type Loader_AutomaticEnv_Call ¶
Loader_AutomaticEnv_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AutomaticEnv'
func (*Loader_AutomaticEnv_Call) Return ¶
func (_c *Loader_AutomaticEnv_Call) Return() *Loader_AutomaticEnv_Call
func (*Loader_AutomaticEnv_Call) Run ¶
func (_c *Loader_AutomaticEnv_Call) Run(run func()) *Loader_AutomaticEnv_Call
func (*Loader_AutomaticEnv_Call) RunAndReturn ¶
func (_c *Loader_AutomaticEnv_Call) RunAndReturn(run func()) *Loader_AutomaticEnv_Call
type Loader_ConfigFileUsed_Call ¶
Loader_ConfigFileUsed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigFileUsed'
func (*Loader_ConfigFileUsed_Call) Return ¶
func (_c *Loader_ConfigFileUsed_Call) Return(_a0 string) *Loader_ConfigFileUsed_Call
func (*Loader_ConfigFileUsed_Call) Run ¶
func (_c *Loader_ConfigFileUsed_Call) Run(run func()) *Loader_ConfigFileUsed_Call
func (*Loader_ConfigFileUsed_Call) RunAndReturn ¶
func (_c *Loader_ConfigFileUsed_Call) RunAndReturn(run func() string) *Loader_ConfigFileUsed_Call
type Loader_Expecter ¶
type Loader_Expecter struct {
// contains filtered or unexported fields
}
func (*Loader_Expecter) AddConfigPath ¶
func (_e *Loader_Expecter) AddConfigPath(path interface{}) *Loader_AddConfigPath_Call
AddConfigPath is a helper method to define mock.On call
- path string
func (*Loader_Expecter) AutomaticEnv ¶
func (_e *Loader_Expecter) AutomaticEnv() *Loader_AutomaticEnv_Call
AutomaticEnv is a helper method to define mock.On call
func (*Loader_Expecter) ConfigFileUsed ¶
func (_e *Loader_Expecter) ConfigFileUsed() *Loader_ConfigFileUsed_Call
ConfigFileUsed is a helper method to define mock.On call
func (*Loader_Expecter) ReadInConfig ¶
func (_e *Loader_Expecter) ReadInConfig() *Loader_ReadInConfig_Call
ReadInConfig is a helper method to define mock.On call
func (*Loader_Expecter) SetConfigName ¶
func (_e *Loader_Expecter) SetConfigName(name interface{}) *Loader_SetConfigName_Call
SetConfigName is a helper method to define mock.On call
- name string
func (*Loader_Expecter) SetConfigType ¶
func (_e *Loader_Expecter) SetConfigType(configType interface{}) *Loader_SetConfigType_Call
SetConfigType is a helper method to define mock.On call
- configType string
func (*Loader_Expecter) SetEnvKeyReplacer ¶
func (_e *Loader_Expecter) SetEnvKeyReplacer(replacer interface{}) *Loader_SetEnvKeyReplacer_Call
SetEnvKeyReplacer is a helper method to define mock.On call
- replacer *strings.Replacer
func (*Loader_Expecter) SetEnvPrefix ¶
func (_e *Loader_Expecter) SetEnvPrefix(prefix interface{}) *Loader_SetEnvPrefix_Call
SetEnvPrefix is a helper method to define mock.On call
- prefix string
func (*Loader_Expecter) Unmarshal ¶
func (_e *Loader_Expecter) Unmarshal(rawVal interface{}) *Loader_Unmarshal_Call
Unmarshal is a helper method to define mock.On call
- rawVal interface{}
type Loader_ReadInConfig_Call ¶
Loader_ReadInConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadInConfig'
func (*Loader_ReadInConfig_Call) Return ¶
func (_c *Loader_ReadInConfig_Call) Return(_a0 error) *Loader_ReadInConfig_Call
func (*Loader_ReadInConfig_Call) Run ¶
func (_c *Loader_ReadInConfig_Call) Run(run func()) *Loader_ReadInConfig_Call
func (*Loader_ReadInConfig_Call) RunAndReturn ¶
func (_c *Loader_ReadInConfig_Call) RunAndReturn(run func() error) *Loader_ReadInConfig_Call
type Loader_SetConfigName_Call ¶
Loader_SetConfigName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetConfigName'
func (*Loader_SetConfigName_Call) Return ¶
func (_c *Loader_SetConfigName_Call) Return() *Loader_SetConfigName_Call
func (*Loader_SetConfigName_Call) Run ¶
func (_c *Loader_SetConfigName_Call) Run(run func(name string)) *Loader_SetConfigName_Call
func (*Loader_SetConfigName_Call) RunAndReturn ¶
func (_c *Loader_SetConfigName_Call) RunAndReturn(run func(string)) *Loader_SetConfigName_Call
type Loader_SetConfigType_Call ¶
Loader_SetConfigType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetConfigType'
func (*Loader_SetConfigType_Call) Return ¶
func (_c *Loader_SetConfigType_Call) Return() *Loader_SetConfigType_Call
func (*Loader_SetConfigType_Call) Run ¶
func (_c *Loader_SetConfigType_Call) Run(run func(configType string)) *Loader_SetConfigType_Call
func (*Loader_SetConfigType_Call) RunAndReturn ¶
func (_c *Loader_SetConfigType_Call) RunAndReturn(run func(string)) *Loader_SetConfigType_Call
type Loader_SetEnvKeyReplacer_Call ¶
Loader_SetEnvKeyReplacer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetEnvKeyReplacer'
func (*Loader_SetEnvKeyReplacer_Call) Return ¶
func (_c *Loader_SetEnvKeyReplacer_Call) Return() *Loader_SetEnvKeyReplacer_Call
func (*Loader_SetEnvKeyReplacer_Call) Run ¶
func (_c *Loader_SetEnvKeyReplacer_Call) Run(run func(replacer *strings.Replacer)) *Loader_SetEnvKeyReplacer_Call
func (*Loader_SetEnvKeyReplacer_Call) RunAndReturn ¶
func (_c *Loader_SetEnvKeyReplacer_Call) RunAndReturn(run func(*strings.Replacer)) *Loader_SetEnvKeyReplacer_Call
type Loader_SetEnvPrefix_Call ¶
Loader_SetEnvPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetEnvPrefix'
func (*Loader_SetEnvPrefix_Call) Return ¶
func (_c *Loader_SetEnvPrefix_Call) Return() *Loader_SetEnvPrefix_Call
func (*Loader_SetEnvPrefix_Call) Run ¶
func (_c *Loader_SetEnvPrefix_Call) Run(run func(prefix string)) *Loader_SetEnvPrefix_Call
func (*Loader_SetEnvPrefix_Call) RunAndReturn ¶
func (_c *Loader_SetEnvPrefix_Call) RunAndReturn(run func(string)) *Loader_SetEnvPrefix_Call
type Loader_Unmarshal_Call ¶
Loader_Unmarshal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unmarshal'
func (*Loader_Unmarshal_Call) Return ¶
func (_c *Loader_Unmarshal_Call) Return(_a0 error) *Loader_Unmarshal_Call
func (*Loader_Unmarshal_Call) Run ¶
func (_c *Loader_Unmarshal_Call) Run(run func(rawVal interface{})) *Loader_Unmarshal_Call
func (*Loader_Unmarshal_Call) RunAndReturn ¶
func (_c *Loader_Unmarshal_Call) RunAndReturn(run func(interface{}) error) *Loader_Unmarshal_Call
type Provider ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Provider) EXPECT ¶
func (_m *Provider) EXPECT() *Provider_Expecter
type Provider_Expecter ¶
type Provider_Expecter struct {
// contains filtered or unexported fields
}
func (*Provider_Expecter) InitConfig ¶
func (_e *Provider_Expecter) InitConfig() *Provider_InitConfig_Call
InitConfig is a helper method to define mock.On call
type Provider_InitConfig_Call ¶
Provider_InitConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitConfig'
func (*Provider_InitConfig_Call) Return ¶
func (_c *Provider_InitConfig_Call) Return(_a0 config.Config, _a1 error) *Provider_InitConfig_Call
func (*Provider_InitConfig_Call) Run ¶
func (_c *Provider_InitConfig_Call) Run(run func()) *Provider_InitConfig_Call
func (*Provider_InitConfig_Call) RunAndReturn ¶
func (_c *Provider_InitConfig_Call) RunAndReturn(run func() (config.Config, error)) *Provider_InitConfig_Call