grpc: Index | Files

package balancerload

import ""

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


Package Files


func Parse Uses

func Parse(md metadata.MD) interface{}

Parse calls parser.Read().

func SetParser Uses

func SetParser(lr Parser)

SetParser sets the load parser.

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

type Parser Uses

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

Parser converts loads from metadata into a concrete type.

Package balancerload imports 1 packages (graph) and is imported by 3 packages. Updated 2019-05-25. Refresh now. Tools for package owners.