loadbalancing

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Unlicense Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const LoadHintsSize = 21 // Increased to 21 to accommodate version + full uint32/int64 fields

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadHints

type LoadHints struct {
	CPULoad    uint32
	MemLoad    uint32
	QueueDepth int64
	Health     uint32
}

LoadHints represents health and capacity information for client-side load balancing.

func DeserializeLoadHints

func DeserializeLoadHints(buf []byte) (LoadHints, bool)

Deserialize decodes LoadHints from a byte slice.

func (*LoadHints) Serialize

func (h *LoadHints) Serialize(buf []byte)

Serialize encodes LoadHints into a byte slice.

Jump to

Keyboard shortcuts

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