Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct {
SmallBufferSize int
MediumBufferSize int
LargeBufferSize int
MaxSmallBuffers int
MaxMediumBuffers int
MaxLargeBuffers int
CleanupInterval time.Duration
MemoryPressureThreshold float64
GCTriggerThreshold float64
}
func DefaultConfig ¶
func DefaultConfig() *Config
type HeaderPool ¶
type HeaderPool struct {
// contains filtered or unexported fields
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetHeaders ¶
GetHeaders returns a header map from the pool
func (*Manager) PutHeaders ¶
PutHeaders returns a header map to the pool
type Stats ¶
type Stats struct {
SmallBuffersInUse int64
MediumBuffersInUse int64
LargeBuffersInUse int64
SmallBuffersTotal int64
MediumBuffersTotal int64
LargeBuffersTotal int64
HeadersInUse int64
HeadersTotal int64
AllocatedBytes int64
SystemBytes int64
GCCycles int64
LastGCTime int64
BufferHitRate float64
ObjectHitRate float64
MemoryPressure float64
LastUpdate int64
}
Click to show internal directories.
Click to hide internal directories.