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, Optional[str]], str])#

A discovery instance based on a static dictionary.

endpoints: Mapping[Tuple[str, Optional[str]], str]#
async get_endpoint(service: str, version: Optional[str]) str#

Retrieve endpoint using the given parameters from endpoints.