sync

package
v1.27.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (p *BufferPool) Get(r io.Reader) (*bytes.Buffer, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL