config

package
v0.0.0-...-9073f78 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceName      string `env:"SERVICE_NAME" envDefault:"events-processing-platform"`
	Logger           logger.Config
	EventStoreConfig eventstoredb.EventStoreConfig
	Neo4j            config.Neo4jConfig
	Postgres         config.PostgresConfig
	Jaeger           tracing.JaegerConfig
	GRPC             GRPC
	Services         Services
	Utils            Utils
}

func InitConfig

func InitConfig() (*Config, error)

type GRPC

type GRPC struct {
	Port        string `env:"GRPC_PORT" envDefault:":5001" validate:"required"`
	Development bool   `env:"GRPC_DEVELOPMENT" envDefault:"false"`
	ApiKey      string `env:"GRPC_API_KEY" validate:"required"`
}

type Services

type Services struct {
	FileStoreApiConfig fsc.FileStoreApiConfig
}

type Utils

type Utils struct {
	RetriesOnOptimisticLockException int `env:"UTILS_RETRIES_ON_OPTIMISTIC_LOCK" envDefault:"5"`
}

Jump to

Keyboard shortcuts

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