config

package
v0.64.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use ConfigMap.ProtoReflect.Descriptor instead.

func (*ConfigMap) GetBool

func (c *ConfigMap) GetBool(key string) bool

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

func (c *ConfigMap) GetBoolWithDefault(key string, defaultValue bool) bool

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

func (c *ConfigMap) GetInt(key string) int

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

func (c *ConfigMap) GetIntWithDefault(key string, defaultValue int) int

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 (x *ConfigMap) GetParameters() map[string]string

func (*ConfigMap) GetString

func (c *ConfigMap) GetString(key string) string

GetString returns the string value with the given key in the Parameters map. If not found, an empty string is returned.

func (*ConfigMap) GetStringWithDefault

func (c *ConfigMap) GetStringWithDefault(key string, defaultValue string) string

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

func (*ConfigMap) Reset added in v0.32.0

func (x *ConfigMap) Reset()

func (*ConfigMap) String added in v0.32.0

func (x *ConfigMap) String() string

func (*ConfigMap) Unmarshal added in v0.53.1

func (c *ConfigMap) Unmarshal(key string, value interface{}) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL