Documentation
¶
Index ¶
- type Options
- func (_m *Options) Bool(name string, defaultValue bool, description string) *bool
- func (_m *Options) BoolVar(pointer *bool, name string, defaultValue bool, description string)
- func (_m *Options) Duration(name string, defaultValue time.Duration, description string) *time.Duration
- func (_m *Options) DurationVar(pointer *time.Duration, name string, defaultValue time.Duration, ...)
- func (_m *Options) Float(name string, defaultValue float32, description string) *float32
- func (_m *Options) FloatVar(pointer *float32, name string, defaultValue float32, description string)
- func (_m *Options) Int(name string, defaultValue int, description string) *int
- func (_m *Options) IntVar(pointer *int, name string, defaultValue int, description string)
- func (_m *Options) Load() error
- func (_m *Options) String(name string, defaultValue string, description string) *string
- func (_m *Options) StringVar(pointer *string, name string, defaultValue string, description string)
- func (_m *Options) Time(name string, defaultValue time.Time, description string) *time.Time
- func (_m *Options) TimeVar(pointer *time.Time, name string, defaultValue time.Time, description string)
- type Source
- func (_m *Source) Bool(name string) (bool, error)
- func (_m *Source) Duration(name string) (time.Duration, error)
- func (_m *Source) Float(name string) (float32, error)
- func (_m *Source) Int(name string) (int, error)
- func (_m *Source) Load() error
- func (_m *Source) String(name string) (string, error)
- func (_m *Source) Time(name string) (time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
Options is an autogenerated mock type for the Options type
func NewOptions ¶
func NewOptions() *Options
func (*Options) Bool ¶
Bool provides a mock function with given fields: name, defaultValue, description
func (*Options) BoolVar ¶
BoolVar provides a mock function with given fields: pointer, name, defaultValue, description
func (*Options) Duration ¶
func (_m *Options) Duration(name string, defaultValue time.Duration, description string) *time.Duration
Duration provides a mock function with given fields: name, defaultValue, description
func (*Options) DurationVar ¶
func (_m *Options) DurationVar(pointer *time.Duration, name string, defaultValue time.Duration, description string)
DurationVar provides a mock function with given fields: pointer, name, defaultValue, description
func (*Options) Float ¶
Float provides a mock function with given fields: name, defaultValue, description
func (*Options) FloatVar ¶
func (_m *Options) FloatVar(pointer *float32, name string, defaultValue float32, description string)
FloatVar provides a mock function with given fields: pointer, name, defaultValue, description
func (*Options) Int ¶
Int provides a mock function with given fields: name, defaultValue, description
func (*Options) IntVar ¶
IntVar provides a mock function with given fields: pointer, name, defaultValue, description
func (*Options) String ¶
String provides a mock function with given fields: name, defaultValue, description
func (*Options) StringVar ¶
StringVar provides a mock function with given fields: pointer, name, defaultValue, description
type Source ¶
Source is an autogenerated mock type for the Source type