Expand description
Directory API - contract for service discovery and instance resolution
Structs§
- Directory
Invalid Argument - Sentinel error wrapped via
anyhow::Errorto signal “client-supplied argument is malformed” (e.g. invalid UUID) through theDirectoryClienttrait. Allows the gRPC server boundary to returnStatus::invalid_argumentinstead of mislabeling a client bug as an internal failure. - Directory
NotFound - Sentinel error wrapped via
anyhow::Errorto signal “the requested gear or service is not registered (or has no live instance)” through theDirectoryClienttrait. Consumers downcast to this type to distinguish a not-ready provider (eventual readiness) from a directory-backend failure — seetoolkit::discovery::DirectoryEndpointResolver. - Grpc
Service Info - A resolved gRPC service and the endpoint it is reachable at.
- Label
Selector - Label-equality selector over instance labels (k8s
matchLabelsstyle). - Local
Directory Client - Local implementation of
DirectoryClientthat delegates toGearManager - Register
Instance Info - Information for registering a new gear instance
- Service
Endpoint - Represents an endpoint where a service can be reached
- Service
Instance Info - Information about a service instance
Enums§
- Instance
State - Serving state of a directory instance, projected from the directory’s live registration/heartbeat tracking.
Traits§
- Directory
Client - Directory API trait for service discovery and instance management