Back to godoc.org
google.golang.org/grpc / internal / balancerload

Package balancerload

v1.32.0
Latest Go to latest

The latest major version is .

Published: Sep 8, 2020 | License: Apache-2.0 | Module: google.golang.org/grpc

Overview

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

Index

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