class documentation

Resolver that matches service ids by prefix.

The resolver returns the configured address when service_id begins with the supplied prefix. If it does not match it raises UnknownServiceError.

Parameters
prefixLeading string that matching service ids must start with.
addressAddress to return for matching ids.
Method __init__ Undocumented
Method resolve Resolve when service_id starts with the configured prefix.
Instance Variable _address Undocumented
Instance Variable _prefix Undocumented
def __init__(self, prefix: str, address: str): (source)

Undocumented

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

Resolve when service_id starts with the configured prefix.

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

Undocumented

Undocumented