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
}
BufferPool pools bytes.Buffers for reading response bodies during protocol deserialization.
func NewBufferPool ¶
func NewBufferPool() *BufferPool
NewBufferPool returns a buffer pool ready for use.
func (*BufferPool) Get ¶
Get consumes the given reader into a buffer from the pool, returning that buffer.
func (*BufferPool) Put ¶
func (p *BufferPool) Put(buf *bytes.Buffer)
Put returns the buffer if it is within the cap limit.
Click to show internal directories.
Click to hide internal directories.