Documentation ¶
Overview ¶
Package buffer provides a custom buffer type that includes metrics for tracking buffer usage. It also provides a pool for managing buffer reusability.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadCloser ¶
func ReadCloser(data []byte, onClose func()) *readCloser
ReadCloser creates a new instance of readCloser.
Types ¶
type Buffer ¶
Buffer is a wrapper around bytes.Buffer that includes a timestamp for tracking Buffer checkout duration.
type Pool ¶
Pool of buffers.
func NewBufferPool ¶
NewBufferPool creates a new instance of BufferPool.
Click to show internal directories.
Click to hide internal directories.