loadbalancer

package
v1.8.15 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RoundRobinServiceConfigPolicy added in v1.8.15

func RoundRobinServiceConfigPolicy() string

RoundRobinServiceConfigPolicy returns the round-robin service-config JSON *fragment* (without outer braces), identical to what WithRoundRobin returns as loadBalancerPolicy. It exists so a caller that builds its OWN resolver instance (see resolver.NewManualResolverInstance) can obtain the same LB policy without going through WithRoundRobin's process-global resolver registration. The caller wraps this in fmt.Sprintf(`{%s}`, policy) exactly as it does WithRoundRobin's return.

func WithRoundRobin

func WithRoundRobin(schemeName string, serviceName string, endpointAddrs []string) (target string, loadBalancerPolicy string, err error)

WithRoundRobin returns gRPC dial target, and defaultServiceConfig set for Round Robin client side load balancer

Types

This section is empty.

Jump to

Keyboard shortcuts

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