helpers

package
v4.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(production bool) zap.Config

InitLogger initialialize zap logging component.

func InitializeConfig

func InitializeConfig(allowedConfigKeys [][]ConfigKey, configName, configPath, envPrefix string)

InitializeConfig ...

Types

type ConfigKey

type ConfigKey struct {
	Type         ConfigKeyType
	Name         string
	DefaultValue interface{}
	Description  string
}

ConfigKey represents the definition of a config flag.

func GetConsumerKafkaConfigKeys added in v4.3.7

func GetConsumerKafkaConfigKeys() []ConfigKey

func GetElasticsearchConfigKeys added in v4.3.7

func GetElasticsearchConfigKeys() []ConfigKey

func GetGeneralConfigKeys added in v4.3.7

func GetGeneralConfigKeys() []ConfigKey

func GetHTTPServerConfigKeys added in v4.3.7

func GetHTTPServerConfigKeys() []ConfigKey

func GetMetricsConfigKeys added in v4.3.7

func GetMetricsConfigKeys() []ConfigKey

func GetPostgresqlConfigKeys added in v4.3.7

func GetPostgresqlConfigKeys() []ConfigKey

func GetSinkEngineConfigKeys added in v4.3.7

func GetSinkEngineConfigKeys() []ConfigKey

func GetSinkIngesterConfigKeys added in v4.3.7

func GetSinkIngesterConfigKeys() []ConfigKey

type ConfigKeyType

type ConfigKeyType int

ConfigKeyType defines all configuration key types.

const (
	// StringFlag key for key-value flag.
	StringFlag ConfigKeyType = iota + 1
	// StringSliceFlag for key-[values] flag.
	StringSliceFlag
)

Jump to

Keyboard shortcuts

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