package lrs
import "google.golang.org/grpc/xds/internal/balancer/lrs"
Package lrs implements load reporting service for xds balancer.
Index ¶
Types ¶
type Store ¶
type Store interface { CallDropped(category string) CallStarted(l internal.Locality) CallFinished(l internal.Locality, err error) CallServerLoad(l internal.Locality, name string, d float64) // Report the load of clusterName to cc. ReportTo(ctx context.Context, cc *grpc.ClientConn, clusterName string, node *corepb.Node) }
Store defines the interface for a load store. It keeps loads and can report them to a server when requested.
func NewStore ¶
func NewStore() Store
NewStore creates a store for load reports.
Source Files ¶
lrs.go
- Version
- v1.27.1
- Published
- Feb 5, 2020
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 19 seconds ago –
Tools for package owners.