Documentation
¶
Index ¶
- type ConfigMap
- func (c *ConfigMap) GetBool(key string) bool
- func (c *ConfigMap) GetBoolWithDefault(key string, defaultValue bool) bool
- func (c *ConfigMap) GetInt(key string) int
- func (c *ConfigMap) GetIntWithDefault(key string, defaultValue int) int
- func (c *ConfigMap) GetString(key string) string
- func (c *ConfigMap) GetStringWithDefault(key string, defaultValue string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMap ¶
type ConfigMap struct {
Parameters map[string]interface{}
}
func (*ConfigMap) GetBool ¶
GetBool returns the boolean value with the given key in the Parameters map. If not found, or the value cannot be converted to a boolean, false is returned.
func (*ConfigMap) GetBoolWithDefault ¶
GetBoolWithDefault returns the boolean value with the given key in the Parameters map. If not found, or the value cannot be converted to a boolean, the given default value is returned.
func (*ConfigMap) GetInt ¶
GetInt returns the integer value with the given key in the Parameters map. If not found, or it cannot be converted into an integer, 0 is returned.
func (*ConfigMap) GetIntWithDefault ¶
GetIntWithDefault returns the integer value with the given key in the Parameters map. If not found, or it cannot be converted into an integer, the given default value is returned.