package weight
Import Path
google.golang.org/grpc/experimental/balancer/weight (on go.dev)
Dependency Relation
imports one package, and imported by one package
Involved Source Files
Package weight contains utilities to manage endpoint weights.
Weights may be used by LB policies to distribute load across
multiple endpoints.
# Experimental
Notice: All APIs in this package are EXPERIMENTAL and may be changed
or removed in a later release.
Package-Level Type Names (total 2, in which 1 is exported)
Package-Level Functions (total 2, both are exported)
FromEndpoint returns the EndpointInfo stored in the Attributes
field of an endpoint. It returns an empty EndpointInfo if attribute
is not found.
Set returns a copy of endpoint in which the Attributes field is
updated with EndpointInfo.
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)