module documentation
Service address resolvers used by the SDK and generated clients.
This module defines a small composable resolver abstraction used to map a logical service identifier (for example the fully-qualified protobuf service name) to a concrete network address or address template used for routing RPCs.
Common usage patterns:
Singlemaps a single explicit id to an address.Prefixmaps any service id beginning with a prefix to an address.Constantalways returns the same address regardless of id.Conventionalimplements a convention-based mapping used by the SDK- (parses service names like nebius.<service>...Service and returns <service>.{domain} by default; it also honors a protobuf extension named api_service_name when present).
Chaincomposes multiple resolvers and returns the first match.Cachedmemoizes results from another resolver.TemplateExpanderapplies simple string substitutions on resolved- addresses (useful for replacing templated placeholders such as {domain}).
All resolvers implement Resolver and raise UnknownServiceError
when a service id cannot be resolved.
| Class | |
Convenience resolver that selects Single or Prefix. |
| Class | |
Memoizing resolver that caches results from another resolver. |
| Class | |
Compose several resolvers and return the first successful result. |
| Class | |
Resolver that always returns a fixed address. |
| Class | |
Convention-based resolver for Nebius services. |
| Class | |
Resolver that matches service ids by prefix. |
| Class | |
Abstract resolver interface. |
| Class | |
Resolver that matches a single explicit service id. |
| Class | |
Resolver that applies simple string substitutions to results. |
| Exception | |
Raised when a resolver cannot map a service id to an address. |
| Variable | log |
Undocumented |