grpcgoogle.golang.org/grpc/balancer/endpointsharding Index | Files

package endpointsharding

import "google.golang.org/grpc/balancer/endpointsharding"

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

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

PickFirstConfig is a pick first config without shuffling enabled.

Functions

func NewBalancer

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

func ParseConfig

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.

Source Files

endpointsharding.go

Version
v1.66.1
Published
Sep 9, 2024
Platform
js/wasm
Imports
12 packages
Last checked
13 minutes ago

Tools for package owners.