config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 8 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) loader.ConfigLoader

Types

type EnvVars

type EnvVars struct {
	LOG_LEVEL                string
	DEP_ENV                  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
	POSTGRE_PORT             string
	OTEL_COLLECTOR_NAME      string
	OTEL_COLLECTOR_NAMESPACE string
	OTEL_COLLECTOR_PORT      string
}

func GetEnvs

func GetEnvs() *EnvVars

Jump to

Keyboard shortcuts

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