Files
suaveplan/packages/networking/network/service-discovery/src/index.ts
2026-05-27 23:47:53 +01:00

41 lines
866 B
TypeScript

// Core
export type { RegisterInput } from "./core/service-registry/service-registry.js";
export { ServiceRegistry } from "./core/service-registry/service-registry.js";
// Errors
export {
SVC_DISC_CODES,
SvcDiscError,
type SvcDiscErrorCode,
} from "./errors/errors.js";
// OTel
export {
bindActiveServicesGauge,
type RegistrationOutcome,
recordQuery,
recordQueryDuration,
recordRegistration,
} from "./otel/otel.js";
// Types
export type {
RegistryEvent,
ServiceDescriptor,
ServiceQuery,
ServiceRegistryConfig,
ServiceRegistryEventMap,
ServiceRegistryStorageLike,
ServiceStatus,
} from "./types/types.js";
// Schemas
export {
RegistrationInputSchema,
ServiceDescriptorSchema,
ServiceQuerySchema,
ServiceRegistryConfigSchema,
ServiceStatusSchema,
} from "./types/types.schemas.js";