pools

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackendBodyBufferPool = sync.Pool{
	New: func() any { return new(bytes.Buffer) },
}
View Source
var BackendBufPool = sync.Pool{
	New: func() interface{} {
		return make([]byte, 0, 64)
	},
}
View Source
var BackendHttpClientPool = &fasthttp.Client{
	MaxConnsPerHost: 512,
	ReadTimeout:     5 * time.Second,
	WriteTimeout:    5 * time.Second,
}
View Source
var (
	KeyValueSlicePool = sync.Pool{
		New: func() interface{} {
			return make([][2][]byte, 0, 64)
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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