Back to / internal / balancerload

Package balancerload

Latest Go to latest

The latest major version is .

Published: Sep 8, 2020 | License: Apache-2.0 | Module:


Package balancerload defines APIs to parse server loads in trailers. The parsed loads are sent to balancers in DoneInfo.


func Parse

func Parse(md metadata.MD) interface{}

Parse calls parser.Read().

func SetParser

func SetParser(lr Parser)

SetParser sets the load parser.

Not mutex-protected, should be called before any gRPC functions.

type Parser

type Parser interface {
	// Parse parses loads from metadata.
	Parse(md metadata.MD) interface{}

Parser converts loads from metadata into a concrete type.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier