balancerload

package
v3.2.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

*
* Copyright 2019 gRPC authors.
*

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

type Parser

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

Parser converts loads from metadata into a concrete type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL