@hsuite/throttler-types
Type definitions and interfaces for the HbarSuite Rate Limiting system.
Description
The @hsuite/throttler-types
package provides TypeScript type definitions, interfaces, and models for implementing rate limiting functionality in the HbarSuite ecosystem. It serves as the foundation for the @hsuite/throttler
package and other related packages by defining the contract for rate limiting operations, storage backends, and configuration options.
Features
🔄 Comprehensive rate limiting type definitions
📊 Flexible storage backend options (Redis, In-Memory)
⚙️ Async configuration support
🏭 Factory pattern integration
🔌 NestJS module integration
⚡ Dynamic configuration capabilities
🛡️ DDoS protection configuration types
Installation
Usage
Basic Configuration
Async Configuration
NestJS Module Integration
API Reference
IThrottler Namespace
The main namespace containing all throttler-related interfaces and types.
Storage Options
Configuration Interface
Factory Interfaces
Documentation
Compodoc Documentation
For detailed API documentation, you can generate and view it using Compodoc:
Generate and serve the documentation:
Generate documentation with coverage information:
Use Cases
API rate limiting implementation
DDoS protection configuration
Resource usage control
Request throttling in distributed systems
Multi-tenant rate limiting
Microservices protection
License
This package is part of the HbarSuite ecosystem and is covered by its license terms.
Built with ❤️ by the HbarSuite Team Copyright © 2024 HbarSuite. All rights reserved.
Last updated