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)
/* sort exporteds by: | */
EndpointInfo will be stored in the Attributes field of Endpoints. Weight uint32 Equal allows the values to be compared by Attributes.Equal. func FromEndpoint(endpoint resolver.Endpoint) EndpointInfo func Set(endpoint resolver.Endpoint, epInfo EndpointInfo) resolver.Endpoint
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.