endpointsharding

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Package endpointsharding implements a load balancing policy that manages homogeneous child policies each owning a single endpoint.

Experimental

Notice: This package is EXPERIMENTAL and may be changed or removed in a later release.

Index

Constants

View Source
const PickFirstConfig = "[{\"pick_first\": {}}]"

PickFirstConfig is a pick first config without shuffling enabled.

Variables

This section is empty.

Functions

func NewBalancer

NewBalancer returns a load balancing policy that manages homogeneous child policies each owning a single endpoint.

Types

type ChildState

type ChildState struct {
	Endpoint resolver.Endpoint
	State    balancer.State
}

ChildState is the balancer state of a child along with the endpoint which identifies the child balancer.

func ChildStatesFromPicker

func ChildStatesFromPicker(picker balancer.Picker) []ChildState

ChildStatesFromPicker returns the state of all the children managed by the endpoint sharding balancer that created this picker.

Jump to

Keyboard shortcuts

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