class documentation

Compose several resolvers and return the first successful result.

The chain tries each resolver in order; resolvers that do not match are expected to raise UnknownServiceError and are skipped. If none of the resolvers match the chain raises UnknownServiceError.

Parameters
*resolversResolver instances tried in order until one succeeds.
Method __init__ Undocumented
Method resolve Attempt resolution using each chained resolver.
Instance Variable _resolvers Undocumented
def __init__(self, *resolvers: Resolver): (source)

Undocumented

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

Attempt resolution using each chained resolver.

Parameters
service_id:strService identifier to resolve.
Returns
strThe address returned by the first matching resolver.
Raises
UnknownServiceErrorif no chained resolver returns a result.
_resolvers = (source)

Undocumented