Documentation ¶
Index ¶
- Variables
- type ConfigMap
- func (*ConfigMap) Descriptor() ([]byte, []int)deprecated
- 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 (x *ConfigMap) GetParameters() map[string]string
- func (c *ConfigMap) GetString(key string) string
- func (c *ConfigMap) GetStringWithDefault(key string, defaultValue string) string
- func (*ConfigMap) ProtoMessage()
- func (x *ConfigMap) ProtoReflect() protoreflect.Message
- func (x *ConfigMap) Reset()
- func (x *ConfigMap) String() string
- func (c *ConfigMap) Unmarshal(key string, value interface{}) (bool, error)
Constants ¶
This section is empty.
Variables ¶
var File_util_config_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ConfigMap ¶
type ConfigMap struct { Parameters map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ConfigMap) Descriptor
deprecated
added in
v0.32.0
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.
func (*ConfigMap) GetParameters ¶ added in v0.32.0
func (*ConfigMap) GetString ¶
GetString returns the string value with the given key in the Parameters map. If not found, an empty string is returned.
func (*ConfigMap) GetStringWithDefault ¶
GetStringWithDefault returns the string value with the given key in the Parameters map. If not found, the given default value is returned.
func (*ConfigMap) ProtoMessage ¶ added in v0.32.0
func (*ConfigMap) ProtoMessage()
func (*ConfigMap) ProtoReflect ¶ added in v0.32.0
func (x *ConfigMap) ProtoReflect() protoreflect.Message