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.
func (*Buffer) RecordMetric ¶
func (b *Buffer) RecordMetric()
func (*Buffer) ResetMetric ¶
func (b *Buffer) ResetMetric()
Click to show internal directories.
Click to hide internal directories.