grpc: Index | Files

package lrs

import ""

Package lrs implements load reporting service for xds balancer.


Package Files


type Store Uses

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 Uses

func NewStore() Store

NewStore creates a store for load reports.

Package lrs imports 12 packages (graph) and is imported by 4 packages. Updated 2020-07-08. Refresh now. Tools for package owners.