config

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGrpcDialAddr

func GetGrpcDialAddr(adapterConfig *model.InvocationConfig) string

func GetGrpcServerAddr

func GetGrpcServerAddr() string

func GetKafkaBrokerAddr

func GetKafkaBrokerAddr() string

func GetMongoConnectionUri

func GetMongoConnectionUri(adapterConfig *model.RepositoryClientConfig) string

func GetOtelCollectorUrl

func GetOtelCollectorUrl() string

func GetRedisConnectionAddr

func GetRedisConnectionAddr(adapterConfig *model.RepositoryClientConfig) string

func GetRestServerAddr

func GetRestServerAddr() string

func NewConfigLoader

func NewConfigLoader(format string) ports.ConfigLoader

Types

type EnvVars

type EnvVars struct {
	LOG_LEVEL                string
	TRACING                  bool
	HTTP_PORT                string
	GRPC_PORT                string
	KAFKA_PORT               string
	KAFKA_CLUSTER_NAME       string
	KAFKA_CLUSTER_NAMESPACE  string
	MONGO_USER               string
	MONGO_PASSWORD           string
	MONGO_PORT               string
	REDIS_PORT               string
	OTEL_COLLECTOR_NAME      string
	OTEL_COLLECTOR_NAMESPACE string
	OTEL_COLLECTOR_PORT      string
	METRICS_PORT             string
	HEALTH_PORT              string
}

func FromClusterConfig added in v1.0.10

func FromClusterConfig(config model.ClusterConfig) *EnvVars

func GetEnvs

func GetEnvs() *EnvVars

func (EnvVars) AsK8sEnvVars added in v1.0.10

func (e EnvVars) AsK8sEnvVars() []corev1.EnvVar

Jump to

Keyboard shortcuts

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