Static Discovery¶
The discovery to start simple.
The static discovery strategy is a good start when you don’t need a strategy.
For instance, a short list of services with static endpoint.
- class blacksmith.sd._async.adapters.static.AsyncStaticDiscovery(endpoints: Mapping[tuple[str, str | None], str])¶
A discovery instance based on a static dictionary.
- endpoints: Mapping[tuple[str, str | None], str]¶
- async get_endpoint(service: str, version: str | None) str ¶
Retrieve endpoint using the given parameters from endpoints.