DiscoveryDependency#
- class rubin.repertoire.DiscoveryDependency#
Bases:
objectMaintain a global Repertoire client for service discovery.
This is structured as a dependency that creates and caches the client on first use to delay client creation until runtime so that the test suite has a chance to initialize environment variables.
Methods Summary
__call__(http_client)Call self as a function.
initialize(logger)Set the logger to use for service discovery.
Methods Documentation
- async __call__(http_client)#
Call self as a function.
- Parameters:
http_client (
AsyncClient)- Return type:
- initialize(logger)#
Set the logger to use for service discovery.
- Parameters:
logger (
BoundLogger)- Return type: