grpc: google.golang.org/grpc/xds/internal/balancer/lrs Index | Files

package lrs

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

Package lrs implements load reporting service for xds balancer.

Index

Package Files

lrs.go

type Store Uses

type Store interface {
    CallDropped(category string)
    CallStarted(l internal.Locality)
    CallFinished(l internal.Locality, err error)
    CallServerLoad(l internal.Locality, name string, d float64)
    ReportTo(ctx context.Context, cc *grpc.ClientConn)
}

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(serviceName string) Store

NewStore creates a store for load reports.

Package lrs imports 13 packages (graph) and is imported by 2 packages. Updated 2019-08-12. Refresh now. Tools for package owners.