config

package
v0.0.0-...-a7567a8 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: BSD-3-Clause Imports: 3 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 {
	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

Jump to

Keyboard shortcuts

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