Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AppEnv string `env:"APP_ENV"` AppSecret string `env:"APP_SECRET"` RunAddress string `env:"RUN_ADDRESS"` AccrualSystemAddress string `env:"ACCRUAL_SYSTEM_ADDRESS"` DatabaseURI string `env:"DATABASE_URI"` RetrieverConcurrency uint64 `env:"RETRIEVER_CONCURRENCY"` RouterConcurrency uint64 `env:"ROUTER_CONCURRENCY"` ProcessingConcurrency uint64 `env:"PROCESSING_CONCURRENCY"` InvalidConcurrency uint64 `env:"INVALID_CONCURRENCY"` ProcessedConcurrency uint64 `env:"PROCESSED_CONCURRENCY"` UpdateBatchSize uint64 `env:"UPDATE_BATCH_SIZE"` LogLevel string `env:"LOG_LEVEL"` CPUProfileFile string `env:"CPU_PROFILE_FILE"` CPUProfileDuration time.Duration `env:"CPU_PROFILE_DURATION"` MemProfileFile string `env:"MEM_PROFILE_FILE"` ShutdownTimeout time.Duration `env:"SHUTDOWN_TIMEOUT"` }
func ParseConfig ¶
func ParseConfig() *Config
Click to show internal directories.
Click to hide internal directories.