mod errors;
pub use errors::DiscoverError;
mod metrics;
pub use metrics::{
DiscoverMetricsBackend, DiscoverMetricsHandle, FAIL_AUTH, FAIL_CONNECT, FAIL_OTHER, FAIL_PARSE,
FAIL_REJECTED_CLIENT, FAIL_REJECTED_SERVER, FAIL_TIMEOUT, NoOpDiscoverMetrics, OUTCOME_FAILURE,
OUTCOME_SUCCESS, noop_discover_metrics,
};
#[cfg(any(feature = "grpc", feature = "http"))]
mod config;
#[cfg(any(feature = "grpc", feature = "http"))]
pub use config::{
DEFAULT_CONNECT_TIMEOUT_MS, DEFAULT_REQUEST_TIMEOUT_MS, DiscoverConfig, DiscoverConfigBuilder,
DiscoveryTransport,
};
#[cfg(any(feature = "grpc", feature = "http"))]
mod tasks;
#[cfg(any(feature = "grpc", feature = "http"))]
pub use tasks::sync;
#[cfg(any(feature = "grpc", feature = "http"))]
pub(crate) mod proto {
include!(concat!(env!("OUT_DIR"), "/solti.discover.v1.rs"));
#[cfg(feature = "http")]
include!(concat!(env!("OUT_DIR"), "/solti.discover.v1.serde.rs"));
}
#[cfg(any(feature = "grpc", feature = "http"))]
pub use proto::{SyncRequest, SyncResponse};