class documentation

Convenience resolver that selects Single or Prefix.

If the provided id ends with a literal * the instance delegates to a Prefix resolver (with the trailing star removed). Otherwise it delegates to a Single resolver. This helper is useful when parsing simple configuration entries that allow either a single service id or a prefix pattern.

Parameters
idService id or prefix (use trailing * for prefix).
addressAddress or template to return for matching ids.
Method __init__ Undocumented
Method resolve Delegate resolution to the selected child resolver.
Instance Variable _parent Undocumented
def __init__(self, id: str, address: str): (source)

Undocumented

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

Delegate resolution to the selected child resolver.

Parameters
service_id:strService identifier to resolve.
Returns
strResolved address string.
Raises
UnknownServiceErrorIf the delegated resolver does not match.

Undocumented