Versions in this module Expand all Collapse all v1 v1.1.0 Nov 3, 2025 v1.0.0 Oct 3, 2025 Changes in this version + type BufferPool struct + type Config struct + CleanupInterval time.Duration + GCTriggerThreshold float64 + LargeBufferSize int + MaxLargeBuffers int + MaxMediumBuffers int + MaxSmallBuffers int + MediumBufferSize int + MemoryPressureThreshold float64 + SmallBufferSize int + func DefaultConfig() *Config + type HeaderPool struct + type Manager struct + func NewManager(config *Config) *Manager + func (m *Manager) Close() error + func (m *Manager) GetBuffer(size int) []byte + func (m *Manager) GetHeaders() map[string]string + func (m *Manager) GetPooledRequest() *PooledRequest + func (m *Manager) GetPooledResponse() *PooledResponse + func (m *Manager) GetStats() Stats + func (m *Manager) PutBuffer(buf []byte) + func (m *Manager) PutHeaders(headers map[string]string) + func (m *Manager) PutPooledRequest(req *PooledRequest) + func (m *Manager) PutPooledResponse(resp *PooledResponse) + type PooledRequest struct + Body interface{} + Context interface{} + Headers map[string]string + MaxRetries int + Method string + QueryParams map[string]interface{} + Timeout time.Duration + URL string + func (r *PooledRequest) Reset() + type PooledResponse struct + Attempts int + Body string + ContentLength int64 + Duration time.Duration + Headers map[string][]string + Proto string + RawBody []byte + Status string + StatusCode int + func (r *PooledResponse) Reset() + type RequestPool struct + type ResponsePool struct + type Stats struct + AllocatedBytes int64 + BufferHitRate float64 + GCCycles int64 + HeadersInUse int64 + HeadersTotal int64 + LargeBuffersInUse int64 + LargeBuffersTotal int64 + LastGCTime int64 + LastUpdate int64 + MediumBuffersInUse int64 + MediumBuffersTotal int64 + MemoryPressure float64 + ObjectHitRate float64 + RequestsInUse int64 + RequestsTotal int64 + ResponsesInUse int64 + ResponsesTotal int64 + SmallBuffersInUse int64 + SmallBuffersTotal int64 + SystemBytes int64