Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPool ¶
type BufferPool struct {
BufferSize int
Lifetime time.Duration
// contains filtered or unexported fields
}
BufferPool implements httputil.BufferPool.
func NewBufferPool ¶
func NewBufferPool(options ...func(*BufferPool)) *BufferPool
NewBufferPool constructs and starts a BufferPool
func (*BufferPool) Get ¶
func (bp *BufferPool) Get() []byte
Get returns a []byte slice from the pool.
func (*BufferPool) Put ¶
func (bp *BufferPool) Put(b []byte)
Put returns a []byte slice to the pool.
Source Files
¶
- buffer.go
Click to show internal directories.
Click to hide internal directories.