helpers

package
v5.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 7 Imported by: 4

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 GetConnectorConfigKeys

func GetConnectorConfigKeys() []ConfigKey

func GetConsumerKafkaConfigKeys

func GetConsumerKafkaConfigKeys() []ConfigKey

func GetElasticsearchConfigKeys

func GetElasticsearchConfigKeys() []ConfigKey

func GetGeneralConfigKeys

func GetGeneralConfigKeys() []ConfigKey

func GetHTTPServerConfigKeys

func GetHTTPServerConfigKeys() []ConfigKey

func GetMetricsConfigKeys

func GetMetricsConfigKeys() []ConfigKey

func GetPostgresqlConfigKeys

func GetPostgresqlConfigKeys() []ConfigKey

func GetRedisConfigKeys added in v5.0.2

func GetRedisConfigKeys() []ConfigKey

func GetSinkEngineConfigKeys

func GetSinkEngineConfigKeys() []ConfigKey

func GetSinkIngesterConfigKeys

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