package lrs

import "google.golang.org/grpc/xds/internal/balancer/lrs"

Package lrs implements load reporting balancer for xds.

Index

Types

type Store

type Store interface {
	CallDropped(category string)
	CallStarted(l internal.LocalityID)
	CallFinished(l internal.LocalityID, err error)
	CallServerLoad(l internal.LocalityID, 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

balancer.go config.go logging.go picker.go store.go

Version
v1.32.0
Published
Sep 8, 2020
Platform
linux/amd64
Imports
20 packages
Last checked
41 seconds ago

Tools for package owners.