UNPKG

digitaltwin-core

Version:

Minimalist framework to collect and handle data in a Digital Twin project

32 lines 892 B
/** * Abstract base class for storage service implementations. * * Defines the contract for persisting and retrieving binary data in the Digital Twin framework. * Concrete implementations provide storage backends like local filesystem, AWS S3, Azure Blob, etc. * * @abstract * @class StorageService * * @example * ```typescript * // Implement for specific storage backend * class S3StorageService extends StorageService { * async save(buffer: Buffer, collectorName: string, extension?: string): Promise<string> { * // Upload to S3 bucket * return 's3://bucket/path/to/file' * } * * async retrieve(path: string): Promise<Buffer> { * // Download from S3 * return buffer * } * * async delete(path: string): Promise<void> { * // Delete from S3 * } * } * ``` */ export class StorageService { } //# sourceMappingURL=storage_service.js.map