Update MinIO bucket configuration and enhance dashboard service caching
continuous-integration/drone/push Build is passing

- Changed the default MinIO bucket name from "opplens-documents" to "opplens" across multiple configuration files.
- Introduced caching for dashboard statistics in the service layer to improve performance and reduce redundant data fetching.
- Implemented a mutex for thread-safe access to cached statistics, ensuring data integrity during concurrent requests.

This update streamlines the configuration for the AI summarizer and optimizes the dashboard service, enhancing overall system efficiency.
This commit is contained in:
Mazyar
2026-06-14 15:14:02 +03:30
parent ca2a1b4425
commit 2e112fe08c
9 changed files with 164 additions and 36 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ type Config struct {
MinioSecretKey string // MinIO secret access key
MinioUseSSL bool // Whether to use SSL for MinIO connection
MinioRegion string // MinIO region
MinioBucket string // MinIO bucket name (default: "opplens-documents")
MinioBucket string // MinIO bucket name (default: "opplens")
MinioTimeout time.Duration // Timeout for MinIO operations
}
@@ -37,7 +37,7 @@ func DefaultConfig() *Config {
APIRetryCount: 2,
APIRetryDelay: 3 * time.Second,
MinioBucket: "opplens-documents",
MinioBucket: "opplens",
MinioRegion: "us-east-1",
MinioUseSSL: false,
MinioTimeout: 30 * time.Second,