Files
query-orchestration/internal/serviceconfig
Jay Brown 7638fd3a90 Merged in feature/rate-limiting (pull request #190)
Implement global and per ip rate limiting

* all tests passing

* test fix

* Enhances test environment for rate limiting

Updates the test environment to better support rate limiting tests.

- Increases rate limits in test container to avoid interference with legitimate test traffic.
- Increases the polling interval for client status checks to reduce load on the rate limiter.
- Adds logic to retry status checks if rate limiting is encountered.

* Merge branch 'main' of bitbucket.org:aarete/query-orchestration into feature/rate-limiting

* build fix

* test fix
2025-10-13 22:13:15 +00:00
..
2025-07-23 09:47:01 -07:00

Service Configuration

Package Documentation

For comprehensive package-level documentation, see README.md.

Service Configuration

This directory contains the service configuration for the DoczyAI project. Common code that is shared by all of the services in the project.

Note that the library currently supports only mapping ENV (and .env) variables to the root of your configuration struct type. Mapping is by name. See https://github.com/caarlos0/env for rules around tagging.

For example:

type AnyServiceNameConfig struct {
    // BaseConfig has all of the common base configuration that all services should have.
    serviceconfig.BaseConfig // Embed the base configuration

	// add any custom values that this service needs
	SomeCustomStringValue string `env:"SOME_CUSTOM_STRING_VALUE"`
}