package lrs

import "google.golang.org/grpc/balancer/xds/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)
	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

func NewStore(serviceName string) Store

NewStore creates a store for load reports.

Source Files

lrs.go

Version
v1.22.1
Published
Jul 25, 2019
Platform
linux/amd64
Imports
13 packages
Last checked
2 hours ago

Tools for package owners.