feat: add gateway client with env-driven assembly
Includes config aggregation for multi-source env keys, from_env and from_settings factories with explicit shared-backend injection, gather_bounded, top-level exports, tightened import-linter layers with the gate removed from the Makefile, and the finalized .env.example.
This commit is contained in:
+5
-2
@@ -60,10 +60,13 @@ known-first-party = ["polygateway"]
|
||||
root_packages = ["polygateway"]
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "洋葱分层:client → 实现层 → 内核(ports/types/errors/streaming)"
|
||||
name = "洋葱分层:client → config → middleware → 实现层(互不依赖)→ 叶子 → 内核"
|
||||
type = "layers"
|
||||
layers = [
|
||||
"polygateway.client",
|
||||
"polygateway.middleware : polygateway.transports : polygateway.backends : polygateway.telemetry : polygateway.structured : polygateway.providers : polygateway.sources",
|
||||
"polygateway.config",
|
||||
"polygateway.middleware",
|
||||
"polygateway.transports | polygateway.backends | polygateway.telemetry | polygateway.structured",
|
||||
"polygateway.providers : polygateway.sources",
|
||||
"polygateway.ports : polygateway.types : polygateway.errors : polygateway.streaming",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user