class documentation

Resolver that matches a single explicit service id.

The resolver returns address only when the provided service_id is exactly equal to the id supplied at construction.

Parameters
idExact service identifier to match.
addressAddress to return when the id matches.
Method __init__ Undocumented
Method resolve Resolve only when service_id exactly matches the configured id.
Instance Variable _address Undocumented
Instance Variable _id Undocumented
def __init__(self, id: str, address: str): (source)

Undocumented

def resolve(self, service_id: str) -> str: (source)

Resolve only when service_id exactly matches the configured id.

Parameters
service_id:strService identifier to resolve.
Returns
strThe configured address when the id matches.
Raises
UnknownServiceErrorwhen the id does not match.
_address = (source)

Undocumented

Undocumented