Add pool management.

This commit is contained in:
2025-11-04 00:32:53 +00:00
parent 71a14721c5
commit 97cf896a17
6 changed files with 500 additions and 27 deletions
+17 -12
View File
@@ -9,18 +9,23 @@ import (
)
type BaseClient struct {
cache *cache.Cache
Logger *logging.Logger
client *http.Client
endpoint string
responseType string
retries_delay time.Duration
retries_number int
retries_patterns []string // Error patterns that should trigger retries
MaxGoRoutines int
cache_global bool
retries_enable bool
minify_queries bool // Enable GraphQL query minification (default: true)
cache *cache.Cache
Logger *logging.Logger
client *http.Client
endpoint string
responseType string
retries_delay time.Duration
retries_number int
retries_patterns []string // Error patterns that should trigger retries
pool_size int // Number of connections to pre-warm
pool_warmup_enabled bool // Enable connection pool warmup
pool_warmup_query string // Query to use for warming up connections
pool_health_interval time.Duration // Interval for pool health checks
pool_stop chan bool // Channel to stop pool monitor
MaxGoRoutines int
cache_global bool
retries_enable bool
minify_queries bool // Enable GraphQL query minification (default: true)
}
type Query struct {