Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { BindAddr string `envconfig:"BIND_ADDR"` CodeListAPIURL string `envconfig:"CODE_LIST_API_URL"` DatasetAPIURL string `envconfig:"DATASET_API_URL"` GracefulShutdownTimeout time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT"` HealthCheckInterval time.Duration `envconfig:"HEALTHCHECK_INTERVAL"` HealthCheckCriticalTimeout time.Duration `envconfig:"HEALTHCHECK_CRITICAL_TIMEOUT"` DefaultLimit int `envconfig:"DEFAULT_LIMIT"` DefaultOffset int `envconfig:"DEFAULT_OFFSET"` DefaultMaxLimit int `envconfig:"DEFAULT_MAXIMUM_LIMIT"` OTExporterOTLPEndpoint string `envconfig:"OTEL_EXPORTER_OTLP_ENDPOINT"` OTServiceName string `envconfig:"OTEL_SERVICE_NAME"` OTBatchTimeout time.Duration `envconfig:"OTEL_BATCH_TIMEOUT"` OtelEnabled bool `envconfig:"OTEL_ENABLED"` }
func Get ¶
func Get() (*Configuration, error)
Get configures the application and returns the configuration
Click to show internal directories.
Click to hide internal directories.