discovery library
Control-plane discovery helpers.
See clientFromDiscovery for the easiest way to bootstrap a client that auto-discovers the correct data plane for the current user/tenant.
Classes
- DiscoveryEnvVars
- Environment variables used by discovery.
- DiscoveryRecord
- A parsed discovery result.
Functions
-
clientFromDiscovery(
{String? token, String? tenantHint, String? controlPlaneUrl, bool forceRefresh = false}) → Future< KumihoClient> - Creates a gRPC KumihoClient using Control Plane discovery.
-
discoverTenant(
{String? controlPlaneUrl, String? firebaseToken, String? tenantHint, bool forceRefresh = false, Duration timeout = const Duration(seconds: 10), File? cacheFile}) → Future< DiscoveryRecord> - Resolves discovery info via Control Plane.
-
getDefaultDiscoveryCacheFile(
) → File