UNPKG

syncguard

Version:

Functional TypeScript library for distributed locking across microservices. Prevents race conditions with Redis, PostgreSQL, Firestore, and custom backends. Features automatic lock management, timeout handling, and extensible architecture.

20 lines (19 loc) 664 B
// SPDX-FileCopyrightText: 2025-present Kriasoft // SPDX-License-Identifier: MIT /** * Core module exports for LockBackend implementations. * Import from `syncguard/common` to build custom backends. * * @see docs/specs/interface.md - LockBackend API contracts */ // Export createAutoLock for internal use by backend modules only export { createAutoLock, lock } from "./auto-lock.js"; export * from "./config.js"; export * from "./constants.js"; export * from "./crypto.js"; export * from "./disposable.js"; export * from "./errors.js"; export * from "./helpers.js"; export * from "./telemetry.js"; export * from "./types.js"; export * from "./validation.js";